porch

package
v0.0.35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 43 Imported by: 1

Documentation

Index

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

func ParseRepositoryName(name string) (string, error)

func RunBackground

func RunBackground(ctx context.Context, coreClient client.WithWatch, cache *cache.Cache)

Types

type ApiserverUserInfoProvider

type ApiserverUserInfoProvider struct{}

func (*ApiserverUserInfoProvider) GetUserInfo

type BasicAuthCredential added in v0.0.8

type BasicAuthCredential struct {
	Username string
	Password string
}

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

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

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

func (s NoopUpdateStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL