Documentation ¶
Index ¶
- Constants
- func CliEnvVars(kube client.Client, p *v1alpha1.WorkspaceParameters) error
- func FindWorkspace(kube client.Client, name, namespace string) (*v1alpha1.Workspace, error)
- func GenerateObservation(op []terraform.Output) v1alpha1.WorkspaceObservation
- func Options(kube client.Client, p v1alpha1.WorkspaceParameters) ([]terraform.Option, error)
- func OptionsToConnectionDetails(o []terraform.Output) handlers.ConnectionDetails
- func WorkspaceDir(cr *v1alpha1.Workspace, tfpath string) string
- func WorkspaceTmpDir(cr *v1alpha1.Workspace) string
- type Client
Constants ¶
View Source
const (
TmpDir = "/tmp/tf"
)
Variables ¶
This section is empty.
Functions ¶
func CliEnvVars ¶
func CliEnvVars(kube client.Client, p *v1alpha1.WorkspaceParameters) error
func FindWorkspace ¶
func GenerateObservation ¶
func GenerateObservation(op []terraform.Output) v1alpha1.WorkspaceObservation
GenerateObservation is used to produce v1alpha1.WorkspaceObservation from workspace_type.Workspace.
func OptionsToConnectionDetails ¶
func OptionsToConnectionDetails(o []terraform.Output) handlers.ConnectionDetails
func WorkspaceTmpDir ¶
Types ¶
type Client ¶
type Client interface { Init(ctx context.Context, o ...terraform.InitOption) error Workspace(ctx context.Context, name string) error Outputs(ctx context.Context) ([]terraform.Output, error) Resources(ctx context.Context) ([]string, error) Diff(ctx context.Context, o ...terraform.Option) (bool, error) Apply(ctx context.Context, o ...terraform.Option) error Destroy(ctx context.Context, o ...terraform.Option) error DeleteCurrentWorkspace(ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.