* .gitignore: ignore autorest installation
Global installation via NPM is not recommended, local installation
requires that we ignore the Node manifests.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
* azcontainerregistry: expose authentication client, options
The ACR authentication API is a public-facing API. Consumers would like
to use the well-tested code in the SDK to interface with this API
instead of having to roll their own. This commit simply exposes all of
the structs, functions and constants that are necessary to consume this
API.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
* models: add documentation for refresh, access tokens
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
---------
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
The Go documentation strongly discourages structs from having methods
with both pointer recievers and non-pointer recievers. For the auth
policy, `getChallengeRequest` presumably did not have a pointer reciever
since it did not make use of the struct at all. We can simply move this
to a function.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
* update the target version of the proxy
* unskip the tests so they fail properly
* fix the skips
* update the assets.json
---------
Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
* add digest validation utils and examples
* update recording assets
* ci fix
* update upload chunk example and test
* refine with review
* update examples
* fix lint
* update example
* fix test failure because of "CONTENT_LEN_INVALID"
* fix lint
* no need to redo challenge request when do retry request
* rewrite auth policy to reduce auth requests time for each request
* add changelog item
* set test run time to 30m as ACR service is too slow sometimes
* refine with code review
* fix lint
* prepare release
* add synchronization
* upgrade core lib version
* add basic config for live test
* update test and recording to support live test
* use mgmt. package to import images for test
* fix live test env problem
* fix env bug and run go mod tidy
* add new line
* very early version of azacr
* update ci
* init blob client
* do not export jwtOnlyWithExp
* fix lint
* change to use CGC as much as possible
* move operation
* rename module path
* change back to public autorest/go version
* finalize auth policy
* add and refine example
* add test
* finish test, example and docs
* loose test coverage criteria temporarily
* update recording
* make authenticationPolicy private
* remove readAll from example and change digest calculation to buffered method
* add blob related examples
* remove endpoint schema check logic
* remove unreferenced types
* fix pageable could not get next page problem and add related tests
* rollback some directives
* refine with review
* change coverage config
* refine some naming
* refine some naming
* refine some naming
* refine with latest review
* add BlobDigestCalculator and refine samples and examples
* update Audience value to consolidate with azcore
* refine test and doc
* add test of upload chunk by chunk
* add test recording file
* update autorest/go version and add some error path test case
* refine readme.md
* update uploadChunk API
* update uploadChunk API
* change options of chunk upload
* upgrade core lib version
* move recording file to remote
* refine model name
* fix lint and doc problem
* remove package link for ci check
* update changelog after running pre-release script
* remove pkg link from url validation