Documentation ¶
Index ¶
- type ConsulDataSource
- type ConsulFactory
- type ConsulPayload
- type Controller
- type DataSource
- type DataSourceConfig
- type DataSourceController
- type DataSourceFactory
- type SourcePayload
- type SourceType
- type TerraformDataSource
- type TerraformFactory
- type TerraformPayload
- type VaultDataSource
- type VaultFactory
- type VaultPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulDataSource ¶
type ConsulDataSource struct { Client consuls.Client Path string Opts *api.QueryOptions // contains filtered or unexported fields }
func (*ConsulDataSource) Get ¶
func (c *ConsulDataSource) Get() (SourcePayload, error)
type ConsulFactory ¶
type ConsulFactory struct { }
func (*ConsulFactory) Create ¶
func (cf *ConsulFactory) Create(input DataSourceConfig) (DataSource, error)
type ConsulPayload ¶
type ConsulPayload struct { Payload *consuls.ConsulPayload // contains filtered or unexported fields }
type Controller ¶
type Controller interface {
GetDataSource(ty SourceType, input DataSourceConfig) (DataSource, error)
}
func NewDataSourceController ¶
func NewDataSourceController() Controller
type DataSource ¶
type DataSource interface {
Get() (SourcePayload, error)
}
func NewConsulDataSource ¶
func NewConsulDataSource(c consuls.Client, input DataSourceConfig) DataSource
func NewVaultDataSource ¶
func NewVaultDataSource(c vault.Client, input DataSourceConfig) DataSource
type DataSourceConfig ¶
type DataSourceConfig struct { TerraformConf *terraform.SourceInput VaultConf *vault.SourceInput ConsulConf *consuls.SourceInput }
type DataSourceController ¶
type DataSourceController struct {
// contains filtered or unexported fields
}
func (*DataSourceController) GetDataSource ¶
func (c *DataSourceController) GetDataSource(ty SourceType, input DataSourceConfig) (DataSource, error)
type DataSourceFactory ¶
type DataSourceFactory interface {
Create(input DataSourceConfig) (DataSource, error)
}
type SourcePayload ¶
func NewConsulPayload ¶
func NewConsulPayload(p *consuls.ConsulPayload, input DataSourceConfig) SourcePayload
func NewTFStatePayload ¶
func NewTFStatePayload(s *terraform.TFState, input DataSourceConfig) SourcePayload
type SourceType ¶
type SourceType string
const ( TerraformSource SourceType = "terraform" VaultSource SourceType = "vault" ConsulSource SourceType = "consulkv" )
type TerraformDataSource ¶
type TerraformDataSource struct {
// contains filtered or unexported fields
}
func NewTerraformDataSource ¶
func NewTerraformDataSource(connector terraform.RemoteStateConnector, input DataSourceConfig) *TerraformDataSource
func (*TerraformDataSource) Get ¶
func (tfs *TerraformDataSource) Get() (SourcePayload, error)
type TerraformFactory ¶
type TerraformFactory struct { }
func (*TerraformFactory) Create ¶
func (tf *TerraformFactory) Create(input DataSourceConfig) (DataSource, error)
type TerraformPayload ¶
type TerraformPayload struct {
// contains filtered or unexported fields
}
type VaultDataSource ¶
type VaultDataSource struct {
// contains filtered or unexported fields
}
func (*VaultDataSource) Get ¶
func (vds *VaultDataSource) Get() (SourcePayload, error)
type VaultFactory ¶
type VaultFactory struct { }
func (*VaultFactory) Create ¶
func (vf *VaultFactory) Create(input DataSourceConfig) (DataSource, error)
type VaultPayload ¶
type VaultPayload struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.