provider

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 26 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 NewAppDataSource

func NewAppDataSource() datasource.DataSource

func NewAppInputResource

func NewAppInputResource() resource.Resource

func NewAppInstallerResource

func NewAppInstallerResource() resource.Resource

func NewAppResource

func NewAppResource() resource.Resource

func NewAppRunnerResource

func NewAppRunnerResource() resource.Resource

func NewAppSandboxResource

func NewAppSandboxResource() resource.Resource

func NewConnectedRepoDataSource

func NewConnectedRepoDataSource() datasource.DataSource

func NewContainerImageComponentResource

func NewContainerImageComponentResource() resource.Resource

func NewDockerBuildComponentResource

func NewDockerBuildComponentResource() resource.Resource

func NewHelmChartComponentResource

func NewHelmChartComponentResource() resource.Resource

func NewInstallDataSource

func NewInstallDataSource() datasource.DataSource

func NewInstallResource

func NewInstallResource() resource.Resource

func NewInstallerResource

func NewInstallerResource() resource.Resource

func NewJobComponentResource

func NewJobComponentResource() resource.Resource

func NewTerraformModuleComponentResource

func NewTerraformModuleComponentResource() resource.Resource

Types

type AWSAccount

type AWSAccount struct {
	Region     types.String `tfsdk:"region"`
	IAMRoleARN types.String `tfsdk:"iam_role_arn"`
}

type AppDataSource

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

AppDataSource defines the data source implementation.

func (*AppDataSource) Configure

func (r *AppDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

func (*AppDataSource) Metadata

func (*AppDataSource) Read

func (*AppDataSource) Schema

type AppDataSourceModel

type AppDataSourceModel struct {
	Name types.String `tfsdk:"name"`
	Id   types.String `tfsdk:"id"`
}

AppDataSourceModel describes the data source data model.

type AppInput

type AppInput struct {
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	DisplayName types.String `tfsdk:"display_name"`
	Group       types.String `tfsdk:"group"`
	Required    types.Bool   `tfsdk:"required"`
	Default     types.String `tfsdk:"default"`
	Sensitive   types.Bool   `tfsdk:"sensitive"`
}

type AppInputGroup added in v0.19.0

type AppInputGroup struct {
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	DisplayName types.String `tfsdk:"display_name"`
}

type AppInputResource

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

AppInputResource defines the resource implementation.

func (*AppInputResource) Configure

func (r *AppInputResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)

func (*AppInputResource) Create

func (*AppInputResource) Delete

func (*AppInputResource) ImportState

func (*AppInputResource) Metadata

func (*AppInputResource) Read

func (*AppInputResource) Schema

func (*AppInputResource) Update

type AppInputResourceModel

type AppInputResourceModel struct {
	ID    types.String `tfsdk:"id"`
	AppID types.String `tfsdk:"app_id"`

	Inputs []AppInput      `tfsdk:"input"`
	Groups []AppInputGroup `tfsdk:"group"`
}

AppInputResourceModel describes the resource data model.

type AppInstallerResource

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

AppInstallerResource defines the resource implementation.

func (*AppInstallerResource) Configure

func (r *AppInstallerResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)

func (*AppInstallerResource) Create

func (*AppInstallerResource) Delete

func (*AppInstallerResource) ImportState

func (*AppInstallerResource) Metadata

func (*AppInstallerResource) Read

func (*AppInstallerResource) Schema

func (*AppInstallerResource) Update

type AppInstallerResourceModel

type AppInstallerResourceModel struct {
	Id types.String `tfsdk:"id"`

	AppID types.String `tfsdk:"app_id"`

	Slug types.String `tfsdk:"slug"`

	// metadata
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`

	PostInstallMarkdown types.String `tfsdk:"post_install_markdown"`

	DocumentationURL types.String `tfsdk:"documentation_url"`
	HomepageURL      types.String `tfsdk:"homepage_url"`
	CommunityURL     types.String `tfsdk:"community_url"`
	GithubURL        types.String `tfsdk:"github_url"`
	LogoURL          types.String `tfsdk:"logo_url"`
	DemoURL          types.String `tfsdk:"demo_url"`
}

AppInstallerResourceModel describes the resource data model.

type AppResource

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

AppResource defines the resource implementation.

func (*AppResource) Configure

func (r *AppResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)

func (*AppResource) Create

func (*AppResource) Delete

func (*AppResource) ImportState

func (*AppResource) Metadata

func (*AppResource) Read

func (*AppResource) Schema

func (*AppResource) Update

type AppResourceModel

type AppResourceModel struct {
	Name            types.String `tfsdk:"name"`
	Description     types.String `tfsdk:"description"`
	DisplayName     types.String `tfsdk:"display_name"`
	SlackWebhookURL types.String `tfsdk:"slack_webhook_url"`
	Id              types.String `tfsdk:"id"`
}

AppResourceModel describes the resource data model.

type AppRunnerResource

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

AppRunnerResource defines the resource implementation.

func (*AppRunnerResource) Configure

func (r *AppRunnerResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)

func (*AppRunnerResource) Create

func (*AppRunnerResource) Delete

func (*AppRunnerResource) ImportState

func (*AppRunnerResource) Metadata

func (*AppRunnerResource) Read

func (*AppRunnerResource) Schema

func (*AppRunnerResource) Update

type AppRunnerResourceModel

type AppRunnerResourceModel struct {
	ID    types.String `tfsdk:"id"`
	AppID types.String `tfsdk:"app_id"`

	EnvVar     []EnvVar     `tfsdk:"env_var"`
	RunnerType types.String `tfsdk:"runner_type"`
}

AppRunnerResourceModel describes the resource data model.

type AppSandboxResource

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

AppSandboxResource defines the resource implementation.

func (*AppSandboxResource) Configure

func (r *AppSandboxResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)

func (*AppSandboxResource) Create

func (*AppSandboxResource) Delete

func (*AppSandboxResource) ImportState

func (*AppSandboxResource) Metadata

func (*AppSandboxResource) Read

func (*AppSandboxResource) Schema

func (*AppSandboxResource) Update

type AppSandboxResourceModel

type AppSandboxResourceModel struct {
	ID    types.String `tfsdk:"id"`
	AppID types.String `tfsdk:"app_id"`

	// one of the following sources must be set for the app sandbox
	PublicRepo    *PublicRepo    `tfsdk:"public_repo"`
	ConnectedRepo *ConnectedRepo `tfsdk:"connected_repo"`

	Variables        []SandboxVar `tfsdk:"var"`
	TerraformVersion types.String `tfsdk:"terraform_version"`
}

AppSandboxResourceModel describes the resource data model.

type AwsEcr

type AwsEcr struct {
	Region     types.String `tfsdk:"region"`
	Tag        types.String `tfsdk:"tag"`
	ImageURL   types.String `tfsdk:"image_url"`
	IAMRoleARN types.String `tfsdk:"iam_role_arn"`
}

type AzureAccount

type AzureAccount struct {
	Location                 types.String `tfsdk:"location"`
	SubscriptionID           types.String `tfsdk:"subscription_id"`
	SubscriptionTenantID     types.String `tfsdk:"subscription_tenant_id"`
	ServicePrincipalAppID    types.String `tfsdk:"service_principal_app_id"`
	ServicePrincipalPassword types.String `tfsdk:"service_principal_password"`
}

type ConnectedRepo

type ConnectedRepo struct {
	Repo      types.String `tfsdk:"repo"`
	Branch    types.String `tfsdk:"branch"`
	Directory types.String `tfsdk:"directory"`
}

type ConnectedRepoDataSource

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

ConnectedRepoDataSource defines the data source implementation.

func (*ConnectedRepoDataSource) Configure

func (r *ConnectedRepoDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

func (*ConnectedRepoDataSource) Metadata

func (*ConnectedRepoDataSource) Read

func (*ConnectedRepoDataSource) Schema

type ConnectedRepoDataSourceModel

type ConnectedRepoDataSourceModel struct {
	// inputs
	Name types.String `tfsdk:"name"`

	// computed
	DefaultBranch types.String `tfsdk:"default_branch"`
	FullName      types.String `tfsdk:"full_name"`
	Repo          types.String `tfsdk:"repo"`
	Owner         types.String `tfsdk:"owner"`
	URL           types.String `tfsdk:"url"`
}

ConnectedRepoDataSourceModel describes the data source data model.

type ContainerImageComponentResource

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

ContainerImageComponentResource defines the resource implementation.

func (*ContainerImageComponentResource) Configure

func (r *ContainerImageComponentResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)

func (*ContainerImageComponentResource) Create

func (*ContainerImageComponentResource) Delete

func (*ContainerImageComponentResource) ImportState

func (*ContainerImageComponentResource) Metadata

func (*ContainerImageComponentResource) Read

func (*ContainerImageComponentResource) Schema

func (*ContainerImageComponentResource) Update

type ContainerImageComponentResourceModel

type ContainerImageComponentResourceModel struct {
	ID types.String `tfsdk:"id"`

	Name         types.String `tfsdk:"name"`
	VarName      types.String `tfsdk:"var_name"`
	Dependencies types.List   `tfsdk:"dependencies"`
	AppID        types.String `tfsdk:"app_id"`

	AwsEcr *AwsEcr `tfsdk:"aws_ecr"`
	Public *Public `tfsdk:"public"`

	EnvVar []EnvVar `tfsdk:"env_var"`
}

ContainerImageComponentResourceModel describes the resource data model.

type DockerBuildComponentResource

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

DockerBuildComponentResource defines the resource implementation.

func (*DockerBuildComponentResource) Configure

func (r *DockerBuildComponentResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)

func (*DockerBuildComponentResource) Create

func (*DockerBuildComponentResource) Delete

func (*DockerBuildComponentResource) ImportState

func (*DockerBuildComponentResource) Metadata

func (*DockerBuildComponentResource) Read

func (*DockerBuildComponentResource) Schema

func (*DockerBuildComponentResource) Update

type DockerBuildComponentResourceModel

type DockerBuildComponentResourceModel struct {
	ID           types.String `tfsdk:"id"`
	Name         types.String `tfsdk:"name"`
	VarName      types.String `tfsdk:"var_name"`
	Dependencies types.List   `tfsdk:"dependencies"`
	AppID        types.String `tfsdk:"app_id"`

	EnvVar []EnvVar `tfsdk:"env_var"`

	Dockerfile    types.String   `tfsdk:"dockerfile"`
	ConnectedRepo *ConnectedRepo `tfsdk:"connected_repo"`
	PublicRepo    *PublicRepo    `tfsdk:"public_repo"`
}

DockerBuildComponentResourceModel describes the resource data model.

type EnvVar

type EnvVar struct {
	Name  types.String `tfsdk:"name"`
	Value types.String `tfsdk:"value"`
}

type EnvVarSlice

type EnvVarSlice []EnvVar

func NewEnvVarSliceFromMap

func NewEnvVarSliceFromMap(stringMap map[string]string) EnvVarSlice

func (*EnvVarSlice) String

func (ev *EnvVarSlice) String() string

func (*EnvVarSlice) ToMap

func (ev *EnvVarSlice) ToMap() map[string]string

type HelmChartComponentResource

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

HelmChartComponentResource defines the resource implementation.

func (*HelmChartComponentResource) Configure

func (r *HelmChartComponentResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)

func (*HelmChartComponentResource) Create

func (*HelmChartComponentResource) Delete

func (*HelmChartComponentResource) ImportState

func (*HelmChartComponentResource) Metadata

func (*HelmChartComponentResource) Read

func (*HelmChartComponentResource) Schema

func (*HelmChartComponentResource) Update

type HelmChartComponentResourceModel

type HelmChartComponentResourceModel struct {
	ID types.String `tfsdk:"id"`

	Name         types.String `tfsdk:"name"`
	VarName      types.String `tfsdk:"var_name"`
	Dependencies types.List   `tfsdk:"dependencies"`
	AppID        types.String `tfsdk:"app_id"`
	ChartName    types.String `tfsdk:"chart_name"`

	ConnectedRepo *ConnectedRepo `tfsdk:"connected_repo"`
	PublicRepo    *PublicRepo    `tfsdk:"public_repo"`

	Value      []HelmValue      `tfsdk:"value"`
	ValuesFile []HelmValuesFile `tfsdk:"values_file"`
}

HelmChartComponentResourceModel describes the resource data model.

type HelmValue

type HelmValue struct {
	Name  types.String `tfsdk:"name"`
	Value types.String `tfsdk:"value"`
}

type HelmValuesFile

type HelmValuesFile struct {
	Contents types.String `tfsdk:"contents"`
}

type InstallDataSource

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

InstallDataSource defines the data source implementation.

func (*InstallDataSource) Configure

func (r *InstallDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

func (*InstallDataSource) Metadata

func (*InstallDataSource) Read

func (*InstallDataSource) Schema

type InstallDataSourceModel

type InstallDataSourceModel struct {
	Name types.String `tfsdk:"name"`
	Id   types.String `tfsdk:"id"`
}

InstallDataSourceModel describes the data source data model.

type InstallInput

type InstallInput struct {
	Name  types.String `tfsdk:"name"`
	Value types.String `tfsdk:"value"`
}

type InstallResource

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

InstallResource defines the resource implementation.

func (*InstallResource) Configure

func (r *InstallResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)

func (*InstallResource) Create

func (*InstallResource) Delete

func (*InstallResource) ImportState

func (*InstallResource) Metadata

func (*InstallResource) Read

func (*InstallResource) Schema

func (*InstallResource) Update

type InstallResourceModel

type InstallResourceModel struct {
	Name  types.String `tfsdk:"name"`
	AppID types.String `tfsdk:"app_id"`

	AWSAccount   []AWSAccount   `tfsdk:"aws"`
	AzureAccount []AzureAccount `tfsdk:"azure"`
	Inputs       []InstallInput `tfsdk:"input"`

	// computed
	ID types.String `tfsdk:"id"`
}

InstallResourceModel describes the resource data model.

type InstallerResource

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

InstallerResource defines the resource implementation.

func (*InstallerResource) Configure

func (r *InstallerResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)

func (*InstallerResource) Create

func (*InstallerResource) Delete

func (*InstallerResource) ImportState

func (*InstallerResource) Metadata

func (*InstallerResource) Read

func (*InstallerResource) Schema

func (*InstallerResource) Update

type InstallerResourceModel

type InstallerResourceModel struct {
	Id types.String `tfsdk:"id"`

	AppIDs types.Set `tfsdk:"app_ids"`

	// metadata
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`

	PostInstallMarkdown types.String `tfsdk:"post_install_markdown"`
	FooterMarkdown      types.String `tfsdk:"footer_markdown"`
	CopyrightMarkdown   types.String `tfsdk:"copyright_markdown"`
	DemoURL             types.String `tfsdk:"demo_url"`
	OgImageURL          types.String `tfsdk:"og_image_url"`

	DocumentationURL types.String `tfsdk:"documentation_url"`
	HomepageURL      types.String `tfsdk:"homepage_url"`
	CommunityURL     types.String `tfsdk:"community_url"`
	GithubURL        types.String `tfsdk:"github_url"`
	LogoURL          types.String `tfsdk:"logo_url"`
	FaviconURL       types.String `tfsdk:"favicon_url"`
}

InstallerResourceModel describes the resource data model.

type JobComponentResource

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

JobComponentResource defines the resource implementation.

func (*JobComponentResource) Configure

func (r *JobComponentResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)

func (*JobComponentResource) Create

func (*JobComponentResource) Delete

func (*JobComponentResource) ImportState

func (*JobComponentResource) Metadata

func (*JobComponentResource) Read

func (*JobComponentResource) Schema

func (*JobComponentResource) Update

type JobComponentResourceModel

type JobComponentResourceModel struct {
	ID types.String `tfsdk:"id"`

	Name         types.String `tfsdk:"name"`
	VarName      types.String `tfsdk:"var_name"`
	Dependencies types.List   `tfsdk:"dependencies"`
	AppID        types.String `tfsdk:"app_id"`
	ImageURL     types.String `tfsdk:"image_url"`
	Tag          types.String `tfsdk:"tag"`
	Cmd          types.List   `tfsdk:"cmd"`
	Args         types.List   `tfsdk:"args"`
	EnvVar       EnvVarSlice  `tfsdk:"env_var"`
}

JobComponentResourceModel describes the resource data model.

type Provider

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

Provider defines the provider implementation.

func (*Provider) Configure

func (*Provider) DataSources

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

func (*Provider) Metadata

func (*Provider) Resources

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

func (*Provider) Schema

type ProviderData

type ProviderData struct {
	OrgID      string
	RestClient nuon.Client
}

type ProviderModel

type ProviderModel struct {
	APIAuthToken types.String `tfsdk:"api_token"`
	OrgID        types.String `tfsdk:"org_id"`
}

ProviderModel describes the provider data model.

type Public

type Public struct {
	ImageURL types.String `tfsdk:"image_url"`
	Tag      types.String `tfsdk:"tag"`
}

type PublicRepo

type PublicRepo struct {
	Repo      types.String `tfsdk:"repo"`
	Directory types.String `tfsdk:"directory"`
	Branch    types.String `tfsdk:"branch"`
}

type SandboxVar

type SandboxVar struct {
	Name  types.String `tfsdk:"name"`
	Value types.String `tfsdk:"value"`
}

type TerraformModuleComponentResource

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

TerraformModuleComponentResource defines the resource implementation.

func (*TerraformModuleComponentResource) Configure

func (r *TerraformModuleComponentResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)

func (*TerraformModuleComponentResource) Create

func (*TerraformModuleComponentResource) Delete

func (*TerraformModuleComponentResource) ImportState

func (*TerraformModuleComponentResource) Metadata

func (*TerraformModuleComponentResource) Read

func (*TerraformModuleComponentResource) Schema

func (*TerraformModuleComponentResource) Update

type TerraformModuleComponentResourceModel

type TerraformModuleComponentResourceModel struct {
	ID types.String `tfsdk:"id"`

	Name             types.String        `tfsdk:"name"`
	VarName          types.String        `tfsdk:"var_name"`
	Dependencies     types.List          `tfsdk:"dependencies"`
	AppID            types.String        `tfsdk:"app_id"`
	TerraformVersion types.String        `tfsdk:"terraform_version"`
	PublicRepo       *PublicRepo         `tfsdk:"public_repo"`
	ConnectedRepo    *ConnectedRepo      `tfsdk:"connected_repo"`
	Var              []TerraformVariable `tfsdk:"var"`
	EnvVar           []EnvVar            `tfsdk:"env_var"`
}

TerraformModuleComponentResourceModel describes the resource data model.

type TerraformVariable

type TerraformVariable struct {
	Name  types.String `tfsdk:"name"`
	Value types.String `tfsdk:"value"`
}

Jump to

Keyboard shortcuts

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