asset

package
v0.0.0-...-eb6ac32 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FindBucketStatus

type FindBucketStatus func(ctx context.Context, namespace, name string) (*v1beta1.CommonBucketStatus, bool, error)

type Handler

type Handler interface {
	Do(ctx context.Context, now time.Time, instance MetaAccessor, spec v1beta1.CommonAssetSpec, status v1beta1.CommonAssetStatus) (*v1beta1.CommonAssetStatus, error)
}

func New

func New(log logr.Logger, recorder record.EventRecorder, store store.Store, loader loader.Loader, findBucketFnc FindBucketStatus, validator assethook.Validator, mutator assethook.Mutator, metadataExtractor assethook.MetadataExtractor, relistInterval time.Duration) Handler

type MetaAccessor

type MetaAccessor interface {
	GetNamespace() string
	GetName() string
	GetGeneration() int64
	GetDeletionTimestamp() *v1.Time
	GetFinalizers() []string
	SetFinalizers(finalizers []string)
	GetObjectKind() schema.ObjectKind
	DeepCopyObject() runtime.Object
}

Jump to

Keyboard shortcuts

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