Documentation ¶
Index ¶
- Constants
- func Apply(workDirectory string, config *Config) (string, error)
- func Destroy(workDirectory string, config *Config) (string, error)
- func Output(workDirectory string, config *Config, outputVars []string) (map[string]string, error)
- type BackendOptions
- type BackendOptionsS3
- type Config
- type ConfigOutput
- type ExecContext
- func (tec *ExecContext) Apply(vars map[string]string) (*executil.Result, string, error)
- func (tec *ExecContext) Destroy(vars map[string]string) (*executil.Result, string, error)
- func (tec *ExecContext) Init() (*executil.Result, string, error)
- func (tec ExecContext) Output(outputVar string) (string, error)
- func (tec ExecContext) Outputs(outputVars []string) (map[string]string, error)
- func (tec *ExecContext) Plan(vars map[string]string, destroy bool) (*executil.Result, string, error)
- type PlanResult
- type S3BackendConfig
Constants ¶
View Source
const (
BackendS3 = "S3"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BackendOptions ¶
type BackendOptions struct {
S3 *BackendOptionsS3
}
func BackendFlags ¶
func BackendFlags(backend *string) (cli.Flag, *BackendOptions)
func (*BackendOptions) AsFlags ¶
func (o *BackendOptions) AsFlags() []string
type BackendOptionsS3 ¶
type BackendOptionsS3 struct {
Bucket string
}
func BackendS3Flags ¶
func BackendS3Flags() (cli.Flags, *BackendOptionsS3)
func (*BackendOptionsS3) AsFlags ¶
func (o *BackendOptionsS3) AsFlags() []string
type Config ¶
type Config struct { Backend interface{} Provider interface{} Modules map[string]interface{} Output map[string]ConfigOutput }
func (Config) MarshalJSON ¶
type ConfigOutput ¶
type ConfigOutput struct {
Value string `json:"value"`
}
type ExecContext ¶
func NewTerrafromExecContext ¶
func NewTerrafromExecContext(workingDir string, envVars map[string]string) (*ExecContext, error)
type PlanResult ¶
type PlanResult int32
const ( PlanResultEmpty PlanResult = iota PlanResultNotEmpty PlanResultError )
type S3BackendConfig ¶
func (S3BackendConfig) MarshalJSON ¶
func (b S3BackendConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
Source Files ¶
Click to show internal directories.
Click to hide internal directories.