Documentation ¶
Index ¶
- Constants
- func NewCredentialResolver(coreClient client.Reader, resolverChain []Resolver) repository.CredentialResolver
- func NewRESTStorage(scheme *runtime.Scheme, codecs serializer.CodecFactory, cad engine.CaDEngine, ...) (genericapiserver.APIGroupInfo, error)
- func NewReferenceResolver(coreClient client.Reader) engine.ReferenceResolver
- func ParseRepositoryName(name string) (string, error)
- func RunBackground(ctx context.Context, coreClient client.WithWatch, cache *cache.Cache)
- type ApiserverUserInfoProvider
- type BasicAuthCredential
- type BasicAuthResolver
- type CircuitBreakerError
- type GcloudWICredential
- type GcloudWIResolver
- type NoMatchingResolverError
- type NoopUpdateStrategy
- type Resolver
- type SimpleRESTCreateStrategy
- type SimpleRESTUpdateStrategy
Constants ¶
View Source
const ( // Values for scret types supported by porch. BasicAuthType = core.SecretTypeBasicAuth WorkloadIdentityAuthType = "kpt.dev/workload-identity-auth" // Annotation used to specify the gsa for a ksa. WIGCPSAAnnotation = "iam.gke.io/gcp-service-account" )
Variables ¶
This section is empty.
Functions ¶
func NewCredentialResolver ¶
func NewCredentialResolver(coreClient client.Reader, resolverChain []Resolver) repository.CredentialResolver
func NewRESTStorage ¶
func NewRESTStorage(scheme *runtime.Scheme, codecs serializer.CodecFactory, cad engine.CaDEngine, coreClient client.WithWatch) (genericapiserver.APIGroupInfo, error)
func NewReferenceResolver ¶
func NewReferenceResolver(coreClient client.Reader) engine.ReferenceResolver
func ParseRepositoryName ¶
Types ¶
type ApiserverUserInfoProvider ¶
type ApiserverUserInfoProvider struct{}
func (*ApiserverUserInfoProvider) GetUserInfo ¶
func (p *ApiserverUserInfoProvider) GetUserInfo(ctx context.Context) *repository.UserInfo
type BasicAuthCredential ¶ added in v0.0.8
func (*BasicAuthCredential) ToAuthMethod ¶ added in v0.0.8
func (b *BasicAuthCredential) ToAuthMethod() transport.AuthMethod
func (*BasicAuthCredential) Valid ¶ added in v0.0.8
func (b *BasicAuthCredential) Valid() bool
type BasicAuthResolver ¶ added in v0.0.7
type BasicAuthResolver struct{}
func (*BasicAuthResolver) Resolve ¶ added in v0.0.7
func (b *BasicAuthResolver) Resolve(_ context.Context, secret core.Secret) (repository.Credential, bool, error)
type CircuitBreakerError ¶ added in v0.0.8
type CircuitBreakerError struct {
Err error
}
func (*CircuitBreakerError) Error ¶ added in v0.0.8
func (cbe *CircuitBreakerError) Error() string
func (*CircuitBreakerError) Unwrap ¶ added in v0.0.8
func (cbe *CircuitBreakerError) Unwrap() error
type GcloudWICredential ¶ added in v0.0.8
type GcloudWICredential struct {
// contains filtered or unexported fields
}
func (*GcloudWICredential) ToAuthMethod ¶ added in v0.0.8
func (b *GcloudWICredential) ToAuthMethod() transport.AuthMethod
func (*GcloudWICredential) Valid ¶ added in v0.0.8
func (b *GcloudWICredential) Valid() bool
type GcloudWIResolver ¶ added in v0.0.7
type GcloudWIResolver struct {
// contains filtered or unexported fields
}
func (*GcloudWIResolver) Resolve ¶ added in v0.0.7
func (g *GcloudWIResolver) Resolve(ctx context.Context, secret core.Secret) (repository.Credential, bool, error)
type NoMatchingResolverError ¶ added in v0.0.7
type NoMatchingResolverError struct {
Type string
}
func (*NoMatchingResolverError) Error ¶ added in v0.0.7
func (e *NoMatchingResolverError) Error() string
func (*NoMatchingResolverError) Is ¶ added in v0.0.7
func (e *NoMatchingResolverError) Is(err error) bool
type NoopUpdateStrategy ¶
type NoopUpdateStrategy struct{}
func (NoopUpdateStrategy) Canonicalize ¶
func (s NoopUpdateStrategy) Canonicalize(obj runtime.Object)
func (NoopUpdateStrategy) PrepareForUpdate ¶
func (s NoopUpdateStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
func (NoopUpdateStrategy) ValidateUpdate ¶
type Resolver ¶ added in v0.0.7
type Resolver interface {
Resolve(ctx context.Context, secret core.Secret) (repository.Credential, bool, error)
}
func NewBasicAuthResolver ¶ added in v0.0.7
func NewBasicAuthResolver() Resolver
func NewGcloudWIResolver ¶ added in v0.0.7
func NewGcloudWIResolver(corev1Client *corev1client.CoreV1Client, stsClient *stsv1.Service) Resolver
type SimpleRESTCreateStrategy ¶
type SimpleRESTCreateStrategy interface { // Validate returns an ErrorList with validation errors or nil. Validate // is invoked after default fields in the object have been filled in // before the object is persisted. This method should not mutate the // object. Validate(ctx context.Context, obj runtime.Object) field.ErrorList }
SimpleRESTCreateStrategy is similar to rest.RESTCreateStrategy, though only contains methods currently required.
type SimpleRESTUpdateStrategy ¶
type SimpleRESTUpdateStrategy interface { PrepareForUpdate(ctx context.Context, obj, old runtime.Object) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList Canonicalize(obj runtime.Object) }
SimpleRESTUpdateStrategy is similar to rest.RESTUpdateStrategy, though only contains methods currently required.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.