Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Format         string
	StorageBackend string
	Signer         string
}

Artifact contains the configuration for how to sign/store/format the signatures for a single artifact

type ArtifactConfigs

type ArtifactConfigs struct {
	TaskRuns Artifact
	OCI      Artifact
}

ArtifactConfig contains the configuration for how to sign/store/format the signatures for each artifact type

type BuilderConfig added in v0.2.0

type BuilderConfig struct {
	ID string
}

type Config

type Config struct {
	Artifacts ArtifactConfigs
	Storage   StorageConfigs
	Signers   SignerConfigs
	Builder   BuilderConfig
}

type ConfigStore

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

func NewConfigStore

func NewConfigStore(kc kubernetes.Interface, namespace string, logger *zap.SugaredLogger) (*ConfigStore, error)

NewConfigStore returns a store that is configured to watch the configmap for changes.

func (*ConfigStore) Config

func (cs *ConfigStore) Config() Config

type DocDBStorageConfig

type DocDBStorageConfig struct {
	URL string
}

type GCSStorageConfig

type GCSStorageConfig struct {
	Bucket string
}

type KMSSigner

type KMSSigner struct {
	KMSRef string
}

type OCIStorageConfig

type OCIStorageConfig struct {
	Repository string
	Insecure   bool
}

type PGPSigner

type PGPSigner struct {
}

type SignerConfigs

type SignerConfigs struct {
	PGP  PGPSigner
	X509 X509Signer
	KMS  KMSSigner
}

SigningConfig contains the configuration to instantiate different signers

type StorageConfigs

type StorageConfigs struct {
	GCS    GCSStorageConfig
	OCI    OCIStorageConfig
	Tekton TektonStorageConfig
	DocDB  DocDBStorageConfig
}

StorageConfig contains the configuration to instantiate different storage providers

type TektonStorageConfig

type TektonStorageConfig struct {
}

type X509Signer

type X509Signer struct {
}

Jump to

Keyboard shortcuts

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