Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶ added in v0.7.0
type AuthProvider interface {
GetAuth() (auth.Credential, error)
}
func NewCredentialFuncTokenProvider ¶ added in v0.10.0
func NewCredentialFuncTokenProvider(creds auth.CredentialFunc, image string) (AuthProvider, error)
NewCredentialFuncTokenProvider creates a token provider that uses the provided auth.CredentialFunc to load access tokens. Only works if the credential function is token based.
type DorasBaseClient ¶
type DorasBaseClient struct {
DorasURL string
Client *http.Client
auth.CredentialFunc
}
DorasBaseClient serves as the base for clients that interact with Doras servers.
func NewBaseClient ¶
func NewBaseClient(serverURL string, credentialFunc auth.CredentialFunc) *DorasBaseClient
NewBaseClient constructs a DorasBaseClient.
Click to show internal directories.
Click to hide internal directories.