Documentation
¶
Index ¶
- Constants
- Variables
- func ErrUnknownCredentials(name string) error
- func ErrUnknownRepository(kind, name string) error
- func GetEvaluationContextFor[T any](ectx EvaluationContext) T
- func RegisterRepositoryType(rtype RepositoryType)
- func RegisterRepositoryTypeVersions(s RepositoryTypeVersionScheme)
- func RegisterStandardIdentity(typ string, matcher IdentityMatcher, desc string, attrs string)
- func RegisterStandardIdentityMatcher(typ string, matcher IdentityMatcher, desc string)
- func SetEvaluationContextFor(ectx EvaluationContext, e any)
- type AliasRegistry
- type ConsumerIdentity
- type ConsumerIdentityProvider
- type ConsumerProvider
- 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 DirectCredentials
- type EvaluationContext
- type GenericCredentialsSpec
- type GenericRepositorySpec
- type IdentityMatcher
- type IdentityMatcherInfo
- type IdentityMatcherRegistry
- type ProviderIdentity
- type Repository
- type RepositoryOption
- type RepositorySpec
- type RepositoryType
- func NewAliasRegistry(t RepositoryType, setter internal.SetAliasFunction) RepositoryType
- func NewRepositoryType[I RepositorySpec](name string, opts ...RepositoryOption) RepositoryType
- func NewRepositoryTypeByConverter[I RepositorySpec, V runtime.TypedObject](name string, converter runtime.Converter[I, V], opts ...RepositoryOption) RepositoryType
- func NewRepositoryTypeByFormatVersion(name string, fmt runtime.FormatVersion[RepositorySpec], ...) RepositoryType
- type RepositoryTypeProvider
- type RepositoryTypeScheme
- type RepositoryTypeVersionScheme
- type StringUsageContext
- type UsageContext
Constants ¶
View Source
const ( ID_TYPE = internal.ID_TYPE ATTR_TYPE = internal.ATTR_TYPE ATTR_USERNAME = internal.ATTR_USERNAME ATTR_EMAIL = internal.ATTR_EMAIL ATTR_PASSWORD = internal.ATTR_PASSWORD ATTR_SERVER_ADDRESS = internal.ATTR_SERVER_ADDRESS ATTR_TOKEN = internal.ATTR_TOKEN ATTR_IDENTITY_TOKEN = internal.ATTR_IDENTITY_TOKEN ATTR_REGISTRY_TOKEN = internal.ATTR_REGISTRY_TOKEN ATTR_KEY = internal.ATTR_KEY ATTR_CERTIFICATE_AUTHORITY = internal.ATTR_CERTIFICATE_AUTHORITY ATTR_CERTIFICATE = internal.ATTR_CERTIFICATE ATTR_PRIVATE_KEY = internal.ATTR_PRIVATE_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 GetEvaluationContextFor ¶ added in v0.11.0
func GetEvaluationContextFor[T any](ectx EvaluationContext) T
func RegisterRepositoryType ¶
func RegisterRepositoryType(rtype RepositoryType)
func RegisterRepositoryTypeVersions ¶ added in v0.3.0
func RegisterRepositoryTypeVersions(s RepositoryTypeVersionScheme)
func RegisterStandardIdentity ¶ added in v0.3.0
func RegisterStandardIdentity(typ string, matcher IdentityMatcher, desc string, attrs string)
func RegisterStandardIdentityMatcher ¶
func RegisterStandardIdentityMatcher(typ string, matcher IdentityMatcher, desc string)
func SetEvaluationContextFor ¶ added in v0.11.0
func SetEvaluationContextFor(ectx EvaluationContext, e any)
Types ¶
type AliasRegistry ¶
type AliasRegistry = internal.AliasRegistry
type ConsumerIdentity ¶
type ConsumerIdentity = internal.ConsumerIdentity
func NewConsumerIdentity ¶ added in v0.3.0
func NewConsumerIdentity(typ string, attrs ...string) ConsumerIdentity
type ConsumerIdentityProvider ¶ added in v0.3.0
type ConsumerIdentityProvider = internal.ConsumerIdentityProvider
type ConsumerProvider ¶ added in v0.3.0
type ConsumerProvider = internal.ConsumerProvider
type Context ¶
func FromProvider ¶ added in v0.3.0
func FromProvider(p ContextProvider) 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
func GetCredentialsForConsumer ¶ added in v0.11.0
func GetCredentialsForConsumer(ctx Context, ectx EvaluationContext, identity ConsumerIdentity, matchers ...IdentityMatcher) (CredentialsSource, error)
type CredentialsSpec ¶
type CredentialsSpec = internal.CredentialsSpec
func NewCredentialsSpec ¶
func NewCredentialsSpec(name string, repospec RepositorySpec) CredentialsSpec
type DirectCredentials ¶
type DirectCredentials = internal.DirectCredentials
type EvaluationContext ¶ added in v0.11.0
type EvaluationContext = internal.EvaluationContext
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 IdentityMatcherInfo ¶ added in v0.3.0
type IdentityMatcherInfo = internal.IdentityMatcherInfo
type IdentityMatcherRegistry ¶ added in v0.3.0
type IdentityMatcherRegistry = internal.IdentityMatcherRegistry
type ProviderIdentity ¶ added in v0.3.0
type ProviderIdentity = internal.ProviderIdentity
type Repository ¶
type Repository = internal.Repository
type RepositoryOption ¶ added in v0.5.0
type RepositoryOption = descriptivetype.Option
func WithDescription ¶ added in v0.5.0
func WithDescription(v string) RepositoryOption
func WithFormatSpec ¶ added in v0.5.0
func WithFormatSpec(v string) RepositoryOption
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[I RepositorySpec](name string, opts ...RepositoryOption) RepositoryType
func NewRepositoryTypeByConverter ¶ added in v0.3.0
func NewRepositoryTypeByConverter[I RepositorySpec, V runtime.TypedObject](name string, converter runtime.Converter[I, V], opts ...RepositoryOption) RepositoryType
func NewRepositoryTypeByFormatVersion ¶ added in v0.3.0
func NewRepositoryTypeByFormatVersion(name string, fmt runtime.FormatVersion[RepositorySpec], opts ...RepositoryOption) RepositoryType
type RepositoryTypeProvider ¶ added in v0.3.0
type RepositoryTypeProvider = internal.RepositoryTypeProvider
type RepositoryTypeScheme ¶ added in v0.3.0
type RepositoryTypeScheme = internal.RepositoryTypeScheme
type RepositoryTypeVersionScheme ¶ added in v0.3.0
type RepositoryTypeVersionScheme = runtime.TypeVersionScheme[RepositorySpec, RepositoryType]
func NewRepositoryTypeVersionScheme ¶ added in v0.3.0
func NewRepositoryTypeVersionScheme(kind string) RepositoryTypeVersionScheme
type StringUsageContext ¶ added in v0.3.0
type StringUsageContext = internal.StringUsageContext
type UsageContext ¶ added in v0.3.0
type UsageContext = internal.UsageContext
Click to show internal directories.
Click to hide internal directories.