provider

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewNavigatorRunDataSource added in v0.15.0

func NewNavigatorRunDataSource() datasource.DataSource

func NewNavigatorRunResource

func NewNavigatorRunResource() resource.Resource

Types

type AnsibleOptionsModel

type AnsibleOptionsModel struct {
	ForceHandlers   types.Bool   `tfsdk:"force_handlers"`
	SkipTags        types.List   `tfsdk:"skip_tags"`
	StartAtTask     types.String `tfsdk:"start_at_task"`
	Limit           types.List   `tfsdk:"limit"`
	Tags            types.List   `tfsdk:"tags"`
	PrivateKeys     types.List   `tfsdk:"private_keys"`
	KnownHosts      types.List   `tfsdk:"known_hosts"`
	HostKeyChecking types.Bool   `tfsdk:"host_key_checking"`
}

func (AnsibleOptionsModel) AttrTypes added in v0.19.0

func (AnsibleOptionsModel) AttrTypes() map[string]attr.Type

func (AnsibleOptionsModel) Defaults added in v0.19.0

func (*AnsibleOptionsModel) Set added in v0.19.0

func (m *AnsibleOptionsModel) Set(ctx context.Context, run *navigatorRun) diag.Diagnostics

func (AnsibleOptionsModel) Value

type AnsibleProvider

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

func (*AnsibleProvider) Configure

func (*AnsibleProvider) DataSources

func (p *AnsibleProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*AnsibleProvider) Metadata

func (*AnsibleProvider) Resources

func (p *AnsibleProvider) Resources(ctx context.Context) []func() resource.Resource

func (*AnsibleProvider) Schema

type AnsibleProviderModel

type AnsibleProviderModel struct {
	BaseRunDirectory    types.String `tfsdk:"base_run_directory"`
	PersistRunDirectory types.Bool   `tfsdk:"persist_run_directory"`
}

type ArtifactQueryModel

type ArtifactQueryModel struct {
	JQFilter types.String `tfsdk:"jq_filter"`
	Results  types.List   `tfsdk:"results"`
}

func (ArtifactQueryModel) AttrTypes added in v0.2.0

func (ArtifactQueryModel) AttrTypes() map[string]attr.Type

func (*ArtifactQueryModel) Set

func (ArtifactQueryModel) Value

type ExecutionEnvironmentModel

type ExecutionEnvironmentModel struct {
	ContainerEngine          types.String `tfsdk:"container_engine"`
	Enabled                  types.Bool   `tfsdk:"enabled"`
	EnvironmentVariablesPass types.List   `tfsdk:"environment_variables_pass"`
	EnvironmentVariablesSet  types.Map    `tfsdk:"environment_variables_set"`
	Image                    types.String `tfsdk:"image"`
	PullArguments            types.List   `tfsdk:"pull_arguments"`
	PullPolicy               types.String `tfsdk:"pull_policy"`
	ContainerOptions         types.List   `tfsdk:"container_options"`
}

func (ExecutionEnvironmentModel) AttrTypes added in v0.2.0

func (ExecutionEnvironmentModel) AttrTypes() map[string]attr.Type

func (ExecutionEnvironmentModel) Defaults added in v0.15.0

func (ExecutionEnvironmentModel) Value

type NavigatorRunDataSource struct {
	// contains filtered or unexported fields
}
type NavigatorRunDataSourceModel struct {
	Playbook               types.String   `tfsdk:"playbook"`
	Inventory              types.String   `tfsdk:"inventory"`
	WorkingDirectory       types.String   `tfsdk:"working_directory"`
	ExecutionEnvironment   types.Object   `tfsdk:"execution_environment"`
	AnsibleNavigatorBinary types.String   `tfsdk:"ansible_navigator_binary"`
	AnsibleOptions         types.Object   `tfsdk:"ansible_options"`
	Timezone               types.String   `tfsdk:"timezone"`
	ArtifactQueries        types.Map      `tfsdk:"artifact_queries"`
	ID                     types.String   `tfsdk:"id"`
	Command                types.String   `tfsdk:"command"`
	Timeouts               timeouts.Value `tfsdk:"timeouts"`
}
func (m *NavigatorRunDataSourceModel) Set(ctx context.Context, run navigatorRun) diag.Diagnostics
func (m NavigatorRunDataSourceModel) Value(ctx context.Context, run *navigatorRun, opts *providerOptions) diag.Diagnostics
type NavigatorRunResource struct {
	// contains filtered or unexported fields
}
func (NavigatorRunResource) TriggersAttr(data *NavigatorRunResourceModel, attribute string) attr.Value

TODO find better solution

type NavigatorRunResourceModel struct {
	Playbook               types.String   `tfsdk:"playbook"`
	Inventory              types.String   `tfsdk:"inventory"`
	WorkingDirectory       types.String   `tfsdk:"working_directory"`
	ExecutionEnvironment   types.Object   `tfsdk:"execution_environment"`
	AnsibleNavigatorBinary types.String   `tfsdk:"ansible_navigator_binary"`
	AnsibleOptions         types.Object   `tfsdk:"ansible_options"`
	Timezone               types.String   `tfsdk:"timezone"`
	RunOnDestroy           types.Bool     `tfsdk:"run_on_destroy"`
	Triggers               types.Object   `tfsdk:"triggers"`
	ArtifactQueries        types.Map      `tfsdk:"artifact_queries"`
	ID                     types.String   `tfsdk:"id"`
	Command                types.String   `tfsdk:"command"`
	Timeouts               timeouts.Value `tfsdk:"timeouts"`
}
func (m *NavigatorRunResourceModel) Set(ctx context.Context, run navigatorRun) diag.Diagnostics
func (m NavigatorRunResourceModel) Value(ctx context.Context, run *navigatorRun, opts *providerOptions, runs uint32) diag.Diagnostics

type PrivateKeyModel added in v0.7.0

type PrivateKeyModel struct {
	Name types.String `tfsdk:"name"`
	Data types.String `tfsdk:"data"`
}

func (PrivateKeyModel) AttrTypes added in v0.19.0

func (PrivateKeyModel) AttrTypes() map[string]attr.Type

func (PrivateKeyModel) Value added in v0.7.0

Jump to

Keyboard shortcuts

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