Documentation
¶
Index ¶
- func NewACRHelper(setters ...Option) credentials.Helper
- type ACRHelper
- type Option
- func WithCacheAuthorizerAtConstruction(opt bool) Option
- func WithClientCertPassword(opt string) Option
- func WithClientCertPath(opt string) Option
- func WithClientID(opt string) Option
- func WithClientSecret(opt string) Option
- func WithEnvironment(opt *environments.Environment) Option
- func WithGitHubRequestToken(opt string) Option
- func WithGitHubRequestTokenURL(opt string) Option
- func WithTenantID(opt string) Option
- func WithTimeout(opt time.Duration) Option
- func WithTokenVersion(opt auth.TokenVersion) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewACRHelper ¶
func NewACRHelper(setters ...Option) credentials.Helper
NewACRHelper will return a credentials.Helper that has implemented Get() for Azure Container Registry
Types ¶
type ACRHelper ¶
type ACRHelper struct {
// contains filtered or unexported fields
}
func (ACRHelper) Add ¶
func (ACRHelper) Add(_ *credentials.Credentials) error
Add appends credentials to the store. NOT implemented.
type Option ¶
type Option func(*Options)
Option is a function to set Options
func WithCacheAuthorizerAtConstruction ¶
WithCacheAuthorizerAtConstruction will, if enabled, try to create an Azure AD authorizer at construction (`NewACRHelper()`) Default: true
func WithClientCertPassword ¶
WithClientCertPassword will set the client certificate password to use for requesting Azure AD tokens Default (environment variable): AZURE_CERTIFICATE_PASSWORD
func WithClientCertPath ¶
WithClientCertPath will set the client certificate path to use for requesting Azure AD tokens Default (environment variable): AZURE_CERTIFICATE_PATH
func WithClientID ¶
WithClientID will set the client id to use for requesting Azure AD tokens Default (environment variable): AZURE_CLIENT_ID
func WithClientSecret ¶
WithClientSecret will set the client secret to use for requesting Azure AD tokens Default (environment variable): AZURE_CLIENT_SECRET
func WithEnvironment ¶
func WithEnvironment(opt *environments.Environment) Option
WithEnvironment will set the Azure environment to use Default: &environments.Global
func WithGitHubRequestToken ¶
WithGitHubRequestToken will set the GitHub request token to use for requesting Azure AD tokens Default (environment variable): ACTIONS_ID_TOKEN_REQUEST_TOKEN
func WithGitHubRequestTokenURL ¶
WithGitHubRequestTokenURL will set the GitHub request token URL to use for requesting Azure AD tokens Default (environment variable): ACTIONS_ID_TOKEN_REQUEST_URL
func WithTenantID ¶
WithTenantID will set the tenant id to use for requesting Azure AD tokens Default (environment variable): AZURE_TENANT_ID
func WithTimeout ¶
WithTimeout will set the timeout for contexts created inside of ACRHelper Default: 10 seconds
func WithTokenVersion ¶
func WithTokenVersion(opt auth.TokenVersion) Option
WithTokenVersion will set the Azure AD token version to request Default: auth.TokenVersion2