porch

package
v0.0.0-...-2e562c1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 43 Imported by: 0

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

type BasicAuthCredential struct {
	Username string
	Password string
}

func (*BasicAuthCredential) ToAuthMethod

func (b *BasicAuthCredential) ToAuthMethod() transport.AuthMethod

func (*BasicAuthCredential) Valid

func (b *BasicAuthCredential) Valid() bool

type BasicAuthResolver

type BasicAuthResolver struct{}

func (*BasicAuthResolver) Resolve

type CircuitBreakerError

type CircuitBreakerError struct {
	Err error
}

func (*CircuitBreakerError) Error

func (cbe *CircuitBreakerError) Error() string

func (*CircuitBreakerError) Unwrap

func (cbe *CircuitBreakerError) Unwrap() error

type GcloudWICredential

type GcloudWICredential struct {
	// contains filtered or unexported fields
}

func (*GcloudWICredential) ToAuthMethod

func (b *GcloudWICredential) ToAuthMethod() transport.AuthMethod

func (*GcloudWICredential) Valid

func (b *GcloudWICredential) Valid() bool

type GcloudWIResolver

type GcloudWIResolver struct {
	// contains filtered or unexported fields
}

func (*GcloudWIResolver) Resolve

type NoMatchingResolverError

type NoMatchingResolverError struct {
	Type string
}

func (*NoMatchingResolverError) Error

func (e *NoMatchingResolverError) Error() string

func (*NoMatchingResolverError) Is

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

type Resolver interface {
	Resolve(ctx context.Context, secret core.Secret) (repository.Credential, bool, error)
}

func NewBasicAuthResolver

func NewBasicAuthResolver() Resolver

func NewGcloudWIResolver

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