Documentation
¶
Index ¶
Constants ¶
View Source
const ( ReconcilerName = "Builds" Kind = "Build" ReasonCompleted = "Completed" )
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewController( ctx context.Context, opt reconciler.Options, k8sClient k8sclient.Interface, informer buildinformers.BuildInformer, podInformer corev1Informers.PodInformer, metadataRetriever MetadataRetriever, podGenerator PodGenerator, podProgressLogger *buildchange.ProgressLogger, keychainFactory registry.KeychainFactory, attester SLSAAttester, secretFetcher SecretFetcher, featureFlags config.FeatureFlags, ) *controller.Impl
Types ¶
type ByCreationTimestamp ¶
func (ByCreationTimestamp) Len ¶
func (o ByCreationTimestamp) Len() int
func (ByCreationTimestamp) Less ¶
func (o ByCreationTimestamp) Less(i, j int) bool
func (ByCreationTimestamp) Swap ¶
func (o ByCreationTimestamp) Swap(i, j int)
type MetadataRetriever ¶
type PodGenerator ¶
type PodProgressLogger ¶ added in v0.12.0
type Reconciler ¶
type Reconciler struct {
Client versioned.Interface
KeychainFactory registry.KeychainFactory
Lister buildlisters.BuildLister
MetadataRetriever MetadataRetriever
K8sClient k8sclient.Interface
PodLister v1Listers.PodLister
PodGenerator PodGenerator
PodProgressLogger PodProgressLogger
Attester SLSAAttester
SecretFetcher SecretFetcher
FeatureFlags config.FeatureFlags
}
type SLSAAttester ¶ added in v0.13.0
type SLSAAttester interface {
AttestBuild(build *buildapi.Build, buildMetadata *cnb.BuildMetadata, pod *corev1.Pod, builderAndAppKeychain authn.Keychain, builderID slsa.BuilderID, depFns ...slsa.BuilderDependencyFn) (intoto.Statement, error)
Sign(ctx context.Context, stmt intoto.Statement, signers ...slsa.Signer) ([]byte, error)
Write(ctx context.Context, digestStr string, payload []byte, keychain authn.Keychain) (ggcrv1.Image, string, error)
}
Click to show internal directories.
Click to hide internal directories.