provider

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MPL-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrAsDiagnostic

func ErrAsDiagnostic(message string, err error) (diags []diag.Diagnostic)

func ErrMissingAttribute

func ErrMissingAttribute(attributeName string) diag.Diagnostic

func ErrMissingProviderAttribute

func ErrMissingProviderAttribute(attributeName, environmentName string) diag.Diagnostic

func ErrUnexpectedDataSourceConfigureType

func ErrUnexpectedDataSourceConfigureType(input any) diag.Diagnostic

func ErrUnexpectedResourceConfigureType

func ErrUnexpectedResourceConfigureType(input any) diag.Diagnostic

func ErrUnknownProviderAttribute

func ErrUnknownProviderAttribute(attributeName, environmentName string) diag.Diagnostic

func New

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

func NewAWSOIDCAccountResource added in v0.0.5

func NewAWSOIDCAccountResource() resource.Resource

func NewEnvironmentDataSource

func NewEnvironmentDataSource() datasource.DataSource

func NewProjectDataSource

func NewProjectDataSource() datasource.DataSource

func NewProjectTriggerResource added in v0.0.4

func NewProjectTriggerResource() resource.Resource

func NewServiceAccountOIDCIdentities added in v0.0.3

func NewServiceAccountOIDCIdentities() datasource.DataSource

func NewServiceAccountOIDCIdentity added in v0.0.3

func NewServiceAccountOIDCIdentity() resource.Resource

func NewTenantConnectionResource

func NewTenantConnectionResource() resource.Resource

func NewTenantDataSource

func NewTenantDataSource() datasource.DataSource

Types

type AWSOIDCAccountResource added in v0.0.5

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

AWSOIDCAccountResource defines the resource implementation.

func (*AWSOIDCAccountResource) ConfigValidators added in v0.0.5

func (*AWSOIDCAccountResource) Configure added in v0.0.5

func (*AWSOIDCAccountResource) Create added in v0.0.5

func (*AWSOIDCAccountResource) Delete added in v0.0.5

func (*AWSOIDCAccountResource) ImportState added in v0.0.5

func (*AWSOIDCAccountResource) Metadata added in v0.0.5

func (*AWSOIDCAccountResource) Read added in v0.0.5

func (*AWSOIDCAccountResource) Schema added in v0.0.5

func (*AWSOIDCAccountResource) Update added in v0.0.5

type AWSOIDCAccountResourceModel added in v0.0.5

type AWSOIDCAccountResourceModel struct {
	SpaceID                         types.String `tfsdk:"space_id"`
	ID                              types.String `tfsdk:"id"`
	Slug                            types.String `tfsdk:"slug"`
	Name                            types.String `tfsdk:"name"`
	Description                     types.String `tfsdk:"description"`
	TenantedDeploymentParticipation types.String `tfsdk:"tenanted_deployment_participation"`
	RoleARN                         types.String `tfsdk:"role_arn"`
	SessionDuration                 types.String `tfsdk:"session_duration"`
	EnvironmentIDs                  types.List   `tfsdk:"environment_ids"`
	TenantIDs                       types.List   `tfsdk:"tenant_ids"`
	TenantTags                      types.List   `tfsdk:"tenant_tags"`
	DeploymentSubjectKeys           types.List   `tfsdk:"deployment_subject_keys"`
	HealthCheckSubjectKeys          types.List   `tfsdk:"health_check_subject_keys"`
	AccountTestSubjectKeys          types.List   `tfsdk:"account_test_subject_keys"`
}

AWSOIDCAccountResourceModel describes the resource data model.

type EnvironmentDataSource

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

EnvironmentDataSource defines the data source implementation.

func (*EnvironmentDataSource) ConfigValidators

func (*EnvironmentDataSource) Configure

Configure adds the provider configured client to the data source.

func (*EnvironmentDataSource) Metadata

func (*EnvironmentDataSource) Read

func (*EnvironmentDataSource) Schema

type EnvironmentDataSourceModel

type EnvironmentDataSourceModel struct {
	SpaceID types.String `tfsdk:"space_id"`
	ID      types.String `tfsdk:"id"`
	Name    types.String `tfsdk:"name"`
}

EnvironmentDataSourceModel describes the data source data model.

type OctopusDeployProvider

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

OctopusDeployProvider defines the provider implementation.

func (*OctopusDeployProvider) Configure

func (*OctopusDeployProvider) DataSources

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

func (*OctopusDeployProvider) Metadata

func (*OctopusDeployProvider) Resources

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

func (*OctopusDeployProvider) Schema

type OctopusDeployProviderModel

type OctopusDeployProviderModel struct {
	SpaceID   types.String `tfsdk:"space_id"`
	ServerURL types.String `tfsdk:"server_url"`
	APIKey    types.String `tfsdk:"api_key"`
}

OctopusDeployProviderModel describes the provider data model.

type ProjectDataSource

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

ProjectDataSource defines the data source implementation.

func (*ProjectDataSource) ConfigValidators

func (*ProjectDataSource) Configure

Configure adds the provider configured client to the data source.

func (*ProjectDataSource) Metadata

func (*ProjectDataSource) Read

func (*ProjectDataSource) Schema

type ProjectDataSourceModel

type ProjectDataSourceModel struct {
	SpaceID types.String `tfsdk:"space_id"`
	ID      types.String `tfsdk:"id"`
	Name    types.String `tfsdk:"name"`
	Slug    types.String `tfsdk:"slug"`
}

ProjectDataSourceModel describes the data source data model.

type ProjectTriggerCronExpressionScheduleResourceModel added in v0.0.4

type ProjectTriggerCronExpressionScheduleResourceModel struct {
	CronExpression types.String `tfsdk:"cron_expression"`
	Timezone       types.String `tfsdk:"timezone"`
}

ProjectTriggerCronExpressionScheduleResourceModel describes the cron expression schedule data model.

type ProjectTriggerResource added in v0.0.4

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

ProjectTriggerResource defines the resource implementation.

func (*ProjectTriggerResource) ConfigValidators added in v0.0.4

func (*ProjectTriggerResource) Configure added in v0.0.4

func (*ProjectTriggerResource) Create added in v0.0.4

func (*ProjectTriggerResource) Delete added in v0.0.4

func (*ProjectTriggerResource) ImportState added in v0.0.4

func (*ProjectTriggerResource) Metadata added in v0.0.4

func (*ProjectTriggerResource) Read added in v0.0.4

func (*ProjectTriggerResource) Schema added in v0.0.4

func (*ProjectTriggerResource) Update added in v0.0.4

type ProjectTriggerResourceModel added in v0.0.4

type ProjectTriggerResourceModel struct {
	SpaceID     types.String `tfsdk:"space_id"`
	ID          types.String `tfsdk:"id"`
	ProjectID   types.String `tfsdk:"project_id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
	IsDisabled  types.Bool   `tfsdk:"is_disabled"`

	RunRunbookAction *ProjectTriggerRunRunbookActionResourceModel `tfsdk:"run_runbook_action"`

	CronExpressionSchedule *ProjectTriggerCronExpressionScheduleResourceModel `tfsdk:"cron_expression_schedule"`
}

ProjectTriggerResourceModel describes the resource data model.

type ProjectTriggerRunRunbookActionResourceModel added in v0.0.4

type ProjectTriggerRunRunbookActionResourceModel struct {
	RunbookID      types.String `tfsdk:"runbook_id"`
	EnvironmentIDs types.List   `tfsdk:"environment_ids"`
	TenantIDs      types.List   `tfsdk:"tenant_ids"`
	TenantTags     types.List   `tfsdk:"tenant_tags"`
}

ProjectTriggerRunbookActionResourceModel describes the runbook action data model.

type ServiceAccountOIDCIdentities added in v0.0.3

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

ServiceAccountOIDCIdentities defines the data source implementation.

func (*ServiceAccountOIDCIdentities) Configure added in v0.0.3

Configure adds the provider configured client to the data source.

func (*ServiceAccountOIDCIdentities) Metadata added in v0.0.3

func (*ServiceAccountOIDCIdentities) Read added in v0.0.3

func (*ServiceAccountOIDCIdentities) Schema added in v0.0.3

type ServiceAccountOIDCIdentitiesModel added in v0.0.3

type ServiceAccountOIDCIdentitiesModel struct {
	UserID         types.String `tfsdk:"user_id"`
	ExternalID     types.String `tfsdk:"external_id"`
	OIDCIdentities types.List   `tfsdk:"oidc_identities"`
	Skip           types.Int64  `tfsdk:"skip"`
	Take           types.Int64  `tfsdk:"take"`
}

ServiceAccountOIDCIdentitiesModel describes the data source data model.

type ServiceAccountOIDCIdentityModel added in v0.0.3

type ServiceAccountOIDCIdentityModel struct {
	ID      types.String `tfsdk:"id"`
	Name    types.String `tfsdk:"name"`
	Issuer  types.String `tfsdk:"issuer"`
	Subject types.String `tfsdk:"subject"`
}

ServiceAccountOIDCIdentityModel describes the data source nested oidc identity data model.

type ServiceAccountOIDCIdentityResource added in v0.0.3

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

ServiceAccountOIDCIdentityResource defines the resource implementation.

func (*ServiceAccountOIDCIdentityResource) Configure added in v0.0.3

func (*ServiceAccountOIDCIdentityResource) Create added in v0.0.3

func (*ServiceAccountOIDCIdentityResource) Delete added in v0.0.3

func (*ServiceAccountOIDCIdentityResource) ImportState added in v0.0.3

func (*ServiceAccountOIDCIdentityResource) Metadata added in v0.0.3

func (*ServiceAccountOIDCIdentityResource) Read added in v0.0.3

func (*ServiceAccountOIDCIdentityResource) Schema added in v0.0.3

func (*ServiceAccountOIDCIdentityResource) Update added in v0.0.3

type ServiceAccountOIDCIdentityResourceModel added in v0.0.3

type ServiceAccountOIDCIdentityResourceModel struct {
	ID         types.String `tfsdk:"id"`
	UserID     types.String `tfsdk:"user_id"`
	ExternalID types.String `tfsdk:"external_id"`
	Name       types.String `tfsdk:"name"`
	Issuer     types.String `tfsdk:"issuer"`
	Subject    types.String `tfsdk:"subject"`
}

ServiceAccountOIDCIdentityResourceModel describes the resource data model.

type TenantConnectionResource

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

TenantConnectionResource defines the resource implementation.

func (*TenantConnectionResource) Configure

func (*TenantConnectionResource) Create

func (*TenantConnectionResource) Delete

func (*TenantConnectionResource) ImportState

func (*TenantConnectionResource) Metadata

func (*TenantConnectionResource) Read

func (*TenantConnectionResource) Schema

func (*TenantConnectionResource) Update

type TenantConnectionResourceModel

type TenantConnectionResourceModel struct {
	SpaceID        types.String `tfsdk:"space_id"`
	TenantID       types.String `tfsdk:"tenant_id"`
	ProjectID      types.String `tfsdk:"project_id"`
	EnvironmentIDs types.List   `tfsdk:"environment_ids"`
}

TenantConnectionResourceModel describes the resource data model.

type TenantDataSource

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

TenantDataSource defines the data source implementation.

func (*TenantDataSource) ConfigValidators

func (*TenantDataSource) Configure

Configure adds the provider configured client to the data source.

func (*TenantDataSource) Metadata

func (*TenantDataSource) Read

func (*TenantDataSource) Schema

type TenantDataSourceModel

type TenantDataSourceModel struct {
	SpaceID types.String `tfsdk:"space_id"`
	ID      types.String `tfsdk:"id"`
	Name    types.String `tfsdk:"name"`
}

TenantDataSourceModel describes the data source data model.

Jump to

Keyboard shortcuts

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