Documentation ¶
Index ¶
- type Collection
- func (c *Collection) Cache() state.Cache
- func (c *Collection) Close() error
- func (c *Collection) DiagsWriter() hcl.DiagnosticWriter
- func (c *Collection) DockerClient() *client.Client
- func (c *Collection) Ignorer() *ignore.Ignorer
- func (c *Collection) PluginsRepo() state.Plugins
- func (c *Collection) StateStore() state.Store
- func (c *Collection) TypeRegistry() *modules.TypeRegistry
- func (c *Collection) Vault() *vault.Vault
- func (c *Collection) With(opts ...CollectionOption) error
- type CollectionModifier
- type CollectionOption
- func WithCache(cache state.Cache) CollectionOption
- func WithDB(db *state.DB) CollectionOption
- func WithDiagnosticsWriter(writer hcl.DiagnosticWriter) CollectionOption
- func WithDockerClientFromEnv(ctx context.Context) CollectionOption
- func WithIgnorer(ignorer *ignore.Ignorer) CollectionOption
- func WithStateStore(store state.Store) CollectionOption
- func WithTypeRegistry(registry *modules.TypeRegistry) CollectionOption
- func WithVault(v *vault.Vault) CollectionOption
- type Config
- type DockerClientAccessor
- type IgnoreAccessor
- type PluginsRepoAccessor
- type TypeRegistryAccessor
- type VaultAccessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func NewCollection ¶
func NewCollection(opts ...CollectionOption) (*Collection, error)
func (*Collection) Cache ¶
func (c *Collection) Cache() state.Cache
func (*Collection) Close ¶
func (c *Collection) Close() error
func (*Collection) DiagsWriter ¶
func (c *Collection) DiagsWriter() hcl.DiagnosticWriter
func (*Collection) DockerClient ¶
func (c *Collection) DockerClient() *client.Client
func (*Collection) Ignorer ¶
func (c *Collection) Ignorer() *ignore.Ignorer
func (*Collection) PluginsRepo ¶
func (c *Collection) PluginsRepo() state.Plugins
func (*Collection) StateStore ¶
func (c *Collection) StateStore() state.Store
func (*Collection) TypeRegistry ¶
func (c *Collection) TypeRegistry() *modules.TypeRegistry
func (*Collection) Vault ¶
func (c *Collection) Vault() *vault.Vault
func (*Collection) With ¶
func (c *Collection) With(opts ...CollectionOption) error
type CollectionModifier ¶
type CollectionModifier interface {
With(opts ...CollectionOption) error
}
type CollectionOption ¶
type CollectionOption interface {
ApplyToCollection(svc *Collection) error
}
func WithCache ¶
func WithCache(cache state.Cache) CollectionOption
func WithDB ¶
func WithDB(db *state.DB) CollectionOption
func WithDiagnosticsWriter ¶
func WithDiagnosticsWriter(writer hcl.DiagnosticWriter) CollectionOption
func WithDockerClientFromEnv ¶
func WithDockerClientFromEnv(ctx context.Context) CollectionOption
func WithIgnorer ¶
func WithIgnorer(ignorer *ignore.Ignorer) CollectionOption
func WithStateStore ¶
func WithStateStore(store state.Store) CollectionOption
func WithTypeRegistry ¶
func WithTypeRegistry(registry *modules.TypeRegistry) CollectionOption
func WithVault ¶
func WithVault(v *vault.Vault) CollectionOption
type Config ¶
type Config struct { BuildR struct { RepoRoot string `mapstructure:"repo-root"` BuildrDirectory string `mapstructure:"buildR-dir"` } `mapstructure:",squash"` Vault struct { FilePath string `mapstructure:"vault-file"` Passphrase string `mapstructure:"vault-passphrase"` PassphraseFile string `mapstructure:"vault-passphrase-file"` } `mapstructure:",squash"` }
type DockerClientAccessor ¶
type IgnoreAccessor ¶
type PluginsRepoAccessor ¶
type TypeRegistryAccessor ¶
type TypeRegistryAccessor interface {
TypeRegistry() *modules.TypeRegistry
}
type VaultAccessor ¶
Click to show internal directories.
Click to hide internal directories.