Documentation
¶
Index ¶
- Constants
- Variables
- func ErrUnknownCredentials(name string) error
- func ErrUnknownRepository(kind, name string) error
- func RegisterRepositoryType(name string, atype RepositoryType)
- func RegisterStandardIdentityMatcher(typ string, matcher IdentityMatcher, desc string)
- type AliasRegistry
- type ConsumerIdentity
- type Context
- type ContextProvider
- type Credentials
- func CredentialsForConsumer(ctx ContextProvider, id ConsumerIdentity, matchers ...IdentityMatcher) (Credentials, error)
- func NewCredentials(props common.Properties) Credentials
- func RequiredCredentialsForConsumer(ctx ContextProvider, id ConsumerIdentity, matchers ...IdentityMatcher) (Credentials, error)
- type CredentialsChain
- type CredentialsSource
- type CredentialsSpec
- type DefaultRepositoryType
- type DirectCredentials
- type GenericCredentialsSpec
- type GenericRepositorySpec
- type IdentityMatcher
- type Repository
- type RepositorySpec
- type RepositoryType
Constants ¶
View Source
const ( ID_TYPE = internal.ID_TYPE ATTR_TYPE = internal.ATTR_TYPE ATTR_USERNAME = internal.ATTR_USERNAME ATTR_PASSWORD = internal.ATTR_PASSWORD ATTR_SERVER_ADDRESS = internal.ATTR_SERVER_ADDRESS ATTR_IDENTITY_TOKEN = internal.ATTR_IDENTITY_TOKEN ATTR_REGISTRY_TOKEN = internal.ATTR_REGISTRY_TOKEN ATTR_KEY = internal.ATTR_KEY )
View Source
const ( KIND_CREDENTIALS = internal.KIND_CREDENTIALS KIND_REPOSITORY = internal.KIND_REPOSITORY )
View Source
const AliasRepositoryType = internal.AliasRepositoryType
View Source
const CONTEXT_TYPE = internal.CONTEXT_TYPE
Variables ¶
View Source
var ( CompleteMatch = internal.CompleteMatch NoMatch = internal.NoMatch PartialMatch = internal.PartialMatch )
View Source
var DefaultContext = internal.DefaultContext
Functions ¶
func ErrUnknownCredentials ¶
func ErrUnknownRepository ¶
func RegisterRepositoryType ¶
func RegisterRepositoryType(name string, atype RepositoryType)
func RegisterStandardIdentityMatcher ¶
func RegisterStandardIdentityMatcher(typ string, matcher IdentityMatcher, desc string)
Types ¶
type AliasRegistry ¶
type AliasRegistry = internal.AliasRegistry
type ConsumerIdentity ¶
type ConsumerIdentity = internal.ConsumerIdentity
type Context ¶
func New ¶
func New(m ...datacontext.BuilderMode) Context
type ContextProvider ¶
type ContextProvider = internal.ContextProvider
type Credentials ¶
type Credentials = internal.Credentials
func CredentialsForConsumer ¶
func CredentialsForConsumer(ctx ContextProvider, id ConsumerIdentity, matchers ...IdentityMatcher) (Credentials, error)
func NewCredentials ¶
func NewCredentials(props common.Properties) Credentials
func RequiredCredentialsForConsumer ¶
func RequiredCredentialsForConsumer(ctx ContextProvider, id ConsumerIdentity, matchers ...IdentityMatcher) (Credentials, error)
type CredentialsChain ¶
type CredentialsChain = internal.CredentialsChain
type CredentialsSource ¶
type CredentialsSource = internal.CredentialsSource
type CredentialsSpec ¶
type CredentialsSpec = internal.CredentialsSpec
func NewCredentialsSpec ¶
func NewCredentialsSpec(name string, repospec RepositorySpec) CredentialsSpec
type DefaultRepositoryType ¶
type DefaultRepositoryType struct { runtime.ObjectVersionedType runtime.TypedObjectDecoder }
type DirectCredentials ¶
type DirectCredentials = internal.DirectCredentials
type GenericCredentialsSpec ¶
type GenericCredentialsSpec = internal.GenericCredentialsSpec
func NewGenericCredentialsSpec ¶
func NewGenericCredentialsSpec(name string, repospec *GenericRepositorySpec) *GenericCredentialsSpec
func ToGenericCredentialsSpec ¶
func ToGenericCredentialsSpec(spec CredentialsSpec) (*GenericCredentialsSpec, error)
type GenericRepositorySpec ¶
type GenericRepositorySpec = internal.GenericRepositorySpec
func ToGenericRepositorySpec ¶
func ToGenericRepositorySpec(spec RepositorySpec) (*GenericRepositorySpec, error)
type IdentityMatcher ¶
type IdentityMatcher = internal.IdentityMatcher
type Repository ¶
type Repository = internal.Repository
type RepositorySpec ¶
type RepositorySpec = internal.RepositorySpec
type RepositoryType ¶
type RepositoryType = internal.RepositoryType
func NewAliasRegistry ¶
func NewAliasRegistry(t RepositoryType, setter internal.SetAliasFunction) RepositoryType
func NewRepositoryType ¶
func NewRepositoryType(name string, proto RepositorySpec) RepositoryType
Click to show internal directories.
Click to hide internal directories.