Documentation ¶
Overview ¶
Package config defines the configuration used by the chains controller to guide what it does.
Index ¶
- Constants
- func ToContext(ctx context.Context, c *Config) context.Context
- type Artifact
- type ArtifactConfigs
- type BuilderConfig
- type Config
- type ConfigStore
- type DocDBStorageConfig
- type GCSStorageConfig
- type KMSSigner
- type OCIStorageConfig
- type SignerConfigs
- type StorageConfigs
- type StorageOpts
- type TektonStorageConfig
- type TransparencyConfig
- type X509Signer
Constants ¶
const (
ChainsConfig = "chains-config"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Artifact ¶
Artifact contains the configuration for how to sign/store/format the signatures for a single artifact
func (*Artifact) DeepCopy ¶ added in v0.3.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Artifact.
func (*Artifact) DeepCopyInto ¶ added in v0.3.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactConfigs ¶
ArtifactConfig contains the configuration for how to sign/store/format the signatures for each artifact type
func (*ArtifactConfigs) DeepCopy ¶ added in v0.3.0
func (in *ArtifactConfigs) DeepCopy() *ArtifactConfigs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactConfigs.
func (*ArtifactConfigs) DeepCopyInto ¶ added in v0.3.0
func (in *ArtifactConfigs) DeepCopyInto(out *ArtifactConfigs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BuilderConfig ¶ added in v0.2.0
type BuilderConfig struct {
ID string
}
func (*BuilderConfig) DeepCopy ¶ added in v0.3.0
func (in *BuilderConfig) DeepCopy() *BuilderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuilderConfig.
func (*BuilderConfig) DeepCopyInto ¶ added in v0.3.0
func (in *BuilderConfig) DeepCopyInto(out *BuilderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Config ¶
type Config struct { Artifacts ArtifactConfigs Storage StorageConfigs Signers SignerConfigs Builder BuilderConfig Transparency TransparencyConfig }
func FromContext ¶ added in v0.3.0
FromContext fetch config from context.
func NewConfigFromConfigMap ¶ added in v0.3.0
NewConfigFromConfigMap creates a Config from the supplied ConfigMap
func NewConfigFromMap ¶ added in v0.3.0
NewConfigFromMap creates a Config from the supplied map
func (*Config) DeepCopy ¶ added in v0.3.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.
func (*Config) DeepCopyInto ¶ added in v0.3.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigStore ¶
type ConfigStore struct {
*configmap.UntypedStore
}
+k8s:deepcopy-gen=false
func NewConfigStore ¶
func NewConfigStore(logger configmap.Logger, onAfterStore ...func(name string, value interface{})) *ConfigStore
NewConfigStore returns a reconciler.ConfigStore for the chains configuration data.
func (*ConfigStore) Load ¶ added in v0.3.0
func (s *ConfigStore) Load() *Config
Load fetches config from Store.
type DocDBStorageConfig ¶
type DocDBStorageConfig struct {
URL string
}
func (*DocDBStorageConfig) DeepCopy ¶ added in v0.3.0
func (in *DocDBStorageConfig) DeepCopy() *DocDBStorageConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DocDBStorageConfig.
func (*DocDBStorageConfig) DeepCopyInto ¶ added in v0.3.0
func (in *DocDBStorageConfig) DeepCopyInto(out *DocDBStorageConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GCSStorageConfig ¶
type GCSStorageConfig struct {
Bucket string
}
func (*GCSStorageConfig) DeepCopy ¶ added in v0.3.0
func (in *GCSStorageConfig) DeepCopy() *GCSStorageConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCSStorageConfig.
func (*GCSStorageConfig) DeepCopyInto ¶ added in v0.3.0
func (in *GCSStorageConfig) DeepCopyInto(out *GCSStorageConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KMSSigner ¶
type KMSSigner struct {
KMSRef string
}
func (*KMSSigner) DeepCopy ¶ added in v0.3.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KMSSigner.
func (*KMSSigner) DeepCopyInto ¶ added in v0.3.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OCIStorageConfig ¶
func (*OCIStorageConfig) DeepCopy ¶ added in v0.3.0
func (in *OCIStorageConfig) DeepCopy() *OCIStorageConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OCIStorageConfig.
func (*OCIStorageConfig) DeepCopyInto ¶ added in v0.3.0
func (in *OCIStorageConfig) DeepCopyInto(out *OCIStorageConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SignerConfigs ¶
type SignerConfigs struct { X509 X509Signer KMS KMSSigner }
SigningConfig contains the configuration to instantiate different signers
func (*SignerConfigs) DeepCopy ¶ added in v0.3.0
func (in *SignerConfigs) DeepCopy() *SignerConfigs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SignerConfigs.
func (*SignerConfigs) DeepCopyInto ¶ added in v0.3.0
func (in *SignerConfigs) DeepCopyInto(out *SignerConfigs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageConfigs ¶
type StorageConfigs struct { GCS GCSStorageConfig OCI OCIStorageConfig Tekton TektonStorageConfig DocDB DocDBStorageConfig }
StorageConfig contains the configuration to instantiate different storage providers
func (*StorageConfigs) DeepCopy ¶ added in v0.3.0
func (in *StorageConfigs) DeepCopy() *StorageConfigs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageConfigs.
func (*StorageConfigs) DeepCopyInto ¶ added in v0.3.0
func (in *StorageConfigs) DeepCopyInto(out *StorageConfigs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageOpts ¶ added in v0.3.0
StorageOpts contains additional information required when storing signatures
func (*StorageOpts) DeepCopy ¶ added in v0.3.0
func (in *StorageOpts) DeepCopy() *StorageOpts
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageOpts.
func (*StorageOpts) DeepCopyInto ¶ added in v0.3.0
func (in *StorageOpts) DeepCopyInto(out *StorageOpts)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TektonStorageConfig ¶
type TektonStorageConfig struct { }
func (*TektonStorageConfig) DeepCopy ¶ added in v0.3.0
func (in *TektonStorageConfig) DeepCopy() *TektonStorageConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TektonStorageConfig.
func (*TektonStorageConfig) DeepCopyInto ¶ added in v0.3.0
func (in *TektonStorageConfig) DeepCopyInto(out *TektonStorageConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TransparencyConfig ¶ added in v0.3.0
func (*TransparencyConfig) DeepCopy ¶ added in v0.3.0
func (in *TransparencyConfig) DeepCopy() *TransparencyConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TransparencyConfig.
func (*TransparencyConfig) DeepCopyInto ¶ added in v0.3.0
func (in *TransparencyConfig) DeepCopyInto(out *TransparencyConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type X509Signer ¶
func (*X509Signer) DeepCopy ¶ added in v0.3.0
func (in *X509Signer) DeepCopy() *X509Signer
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new X509Signer.
func (*X509Signer) DeepCopyInto ¶ added in v0.3.0
func (in *X509Signer) DeepCopyInto(out *X509Signer)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.