resources

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArePointerTimesEqual

func ArePointerTimesEqual(t1 *time.Time, t2 *time.Time) bool

ArePointerTimesEqual is a helper to compare equality of two pointer times as this can get verbose to do inline with the resource logic.

func NewAccountResource

func NewAccountResource() resource.Resource

NewAccountResource returns a new AccountResource.

func NewServiceAccountResource

func NewServiceAccountResource() resource.Resource

NewServiceAccountResource returns a new AccountResource.

func NewVariableResource

func NewVariableResource() resource.Resource

NewVariableResource returns a new VariableResource.

func NewWorkPoolResource

func NewWorkPoolResource() resource.Resource

NewWorkPoolResource returns a new WorkPoolResource.

func NewWorkspaceAccessResource

func NewWorkspaceAccessResource() resource.Resource

NewWorkspaceAccessResource returns a new WorkspaceAccessResource.

func NewWorkspaceResource

func NewWorkspaceResource() resource.Resource

NewWorkspaceResource returns a new WorkspaceResource.

func NewWorkspaceRoleResource

func NewWorkspaceRoleResource() resource.Resource

NewWorkspaceRoleResource returns a new WorkspaceRoleResource.

Types

type AccountResource

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

AccountResource contains state for the resource.

func (*AccountResource) Configure

Configure initializes runtime state for the resource.

func (*AccountResource) Create

Create creates the resource and sets the initial Terraform state.

func (*AccountResource) Delete

Delete deletes the resource and removes the Terraform state on success.

func (*AccountResource) ImportState

ImportState imports the resource into Terraform state.

func (*AccountResource) Metadata

Metadata returns the resource type name.

func (*AccountResource) Read

Read refreshes the Terraform state with the latest data.

func (*AccountResource) Schema

Schema defines the schema for the resource.

func (*AccountResource) Update

Update updates the resource and sets the updated Terraform state on success.

type AccountResourceModel

type AccountResourceModel struct {
	ID      types.String               `tfsdk:"id"`
	Created customtypes.TimestampValue `tfsdk:"created"`
	Updated customtypes.TimestampValue `tfsdk:"updated"`

	Name                  types.String `tfsdk:"name"`
	Handle                types.String `tfsdk:"handle"`
	Location              types.String `tfsdk:"location"`
	Link                  types.String `tfsdk:"link"`
	AllowPublicWorkspaces types.Bool   `tfsdk:"allow_public_workspaces"`
	BillingEmail          types.String `tfsdk:"billing_email"`
}

AccountResourceModel defines the Terraform resource model.

type ServiceAccountResource

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

func (*ServiceAccountResource) Configure

func (*ServiceAccountResource) Create

Create creates the resource and sets the initial Terraform state.

func (*ServiceAccountResource) Delete

Delete deletes the resource and removes the Terraform state on success.

func (*ServiceAccountResource) ImportState

ImportState imports the resource into Terraform state.

func (*ServiceAccountResource) Metadata

func (*ServiceAccountResource) Read

Read refreshes the Terraform state with the latest data.

func (*ServiceAccountResource) Schema

func (*ServiceAccountResource) Update

Update updates the resource and sets the updated Terraform state on success.

type ServiceAccountResourceModel

type ServiceAccountResourceModel struct {
	ID      types.String               `tfsdk:"id"`
	Created customtypes.TimestampValue `tfsdk:"created"`
	Updated customtypes.TimestampValue `tfsdk:"updated"`

	Name            types.String          `tfsdk:"name"`
	AccountID       customtypes.UUIDValue `tfsdk:"account_id"`
	AccountRoleName types.String          `tfsdk:"account_role_name"`

	APIKeyID         types.String               `tfsdk:"api_key_id"`
	APIKeyName       types.String               `tfsdk:"api_key_name"`
	APIKeyCreated    customtypes.TimestampValue `tfsdk:"api_key_created"`
	APIKeyExpiration customtypes.TimestampValue `tfsdk:"api_key_expiration"`
	APIKey           types.String               `tfsdk:"api_key"`
}

type VariableResource

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

VariableResource contains state for the resource.

func (*VariableResource) Configure

Configure initializes runtime state for the resource.

func (*VariableResource) Create

Create creates the resource and sets the initial Terraform state.

func (*VariableResource) Delete

Delete deletes the resource and removes the Terraform state on success.

func (*VariableResource) ImportState

ImportState imports the resource into Terraform state.

func (*VariableResource) Metadata

Metadata returns the resource type name.

func (*VariableResource) Read

Read refreshes the Terraform state with the latest data.

func (*VariableResource) Schema

Schema defines the schema for the resource.

func (*VariableResource) Update

Update updates the resource and sets the updated Terraform state on success.

type VariableResourceModel

type VariableResourceModel struct {
	ID          types.String               `tfsdk:"id"`
	Created     customtypes.TimestampValue `tfsdk:"created"`
	Updated     customtypes.TimestampValue `tfsdk:"updated"`
	AccountID   customtypes.UUIDValue      `tfsdk:"account_id"`
	WorkspaceID customtypes.UUIDValue      `tfsdk:"workspace_id"`

	Name  types.String `tfsdk:"name"`
	Value types.String `tfsdk:"value"`
	Tags  types.List   `tfsdk:"tags"`
}

VariableResourceModel defines the Terraform resource model.

type WorkPoolResource

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

WorkPoolResource contains state for the resource.

func (*WorkPoolResource) Configure

Configure initializes runtime state for the resource.

func (*WorkPoolResource) Create

Create creates the resource and sets the initial Terraform state.

func (*WorkPoolResource) Delete

Delete deletes the resource and removes the Terraform state on success.

func (*WorkPoolResource) ImportState

ImportState imports the resource into Terraform state.

func (*WorkPoolResource) Metadata

Metadata returns the resource type name.

func (*WorkPoolResource) Read

Read refreshes the Terraform state with the latest data.

func (*WorkPoolResource) Schema

Schema defines the schema for the resource.

func (*WorkPoolResource) Update

Update updates the resource and sets the updated Terraform state on success.

type WorkPoolResourceModel

type WorkPoolResourceModel struct {
	ID          types.String               `tfsdk:"id"`
	Created     customtypes.TimestampValue `tfsdk:"created"`
	Updated     customtypes.TimestampValue `tfsdk:"updated"`
	AccountID   customtypes.UUIDValue      `tfsdk:"account_id"`
	WorkspaceID customtypes.UUIDValue      `tfsdk:"workspace_id"`

	Name             types.String          `tfsdk:"name"`
	Description      types.String          `tfsdk:"description"`
	Type             types.String          `tfsdk:"type"`
	Paused           types.Bool            `tfsdk:"paused"`
	ConcurrencyLimit types.Int64           `tfsdk:"concurrency_limit"`
	DefaultQueueID   customtypes.UUIDValue `tfsdk:"default_queue_id"`
	BaseJobTemplate  jsontypes.Normalized  `tfsdk:"base_job_template"`
}

WorkPoolResourceModel defines the Terraform resource model.

type WorkspaceAccessResource

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

func (*WorkspaceAccessResource) Configure

Configure initializes runtime state for the resource.

func (*WorkspaceAccessResource) Create

Create will create the Workspace Access resource through the API and insert it into the State.

func (*WorkspaceAccessResource) Delete

Delete deletes the resource and removes the Terraform state on success.

func (*WorkspaceAccessResource) Metadata

Metadata returns the resource type name.

func (*WorkspaceAccessResource) Read

Read refreshes the Terraform state with the latest data.

func (*WorkspaceAccessResource) Schema

func (*WorkspaceAccessResource) Update

Update updates the resource and sets the updated Terraform state on success.

type WorkspaceAccessResourceModel

type WorkspaceAccessResourceModel struct {
	ID              types.String          `tfsdk:"id"`
	AccessorType    types.String          `tfsdk:"accessor_type"`
	AccessorID      customtypes.UUIDValue `tfsdk:"accessor_id"`
	WorkspaceRoleID customtypes.UUIDValue `tfsdk:"workspace_role_id"`

	WorkspaceID customtypes.UUIDValue `tfsdk:"workspace_id"`
	AccountID   customtypes.UUIDValue `tfsdk:"account_id"`
}

type WorkspaceResource

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

WorkspaceResource contains state for the resource.

func (*WorkspaceResource) Configure

Configure initializes runtime state for the resource.

func (*WorkspaceResource) Create

Create creates the resource and sets the initial Terraform state.

func (*WorkspaceResource) Delete

Delete deletes the resource and removes the Terraform state on success.

func (*WorkspaceResource) ImportState

ImportState imports the resource into Terraform state.

func (*WorkspaceResource) Metadata

Metadata returns the resource type name.

func (*WorkspaceResource) Read

Read refreshes the Terraform state with the latest data.

func (*WorkspaceResource) Schema

Schema defines the schema for the resource.

func (*WorkspaceResource) Update

Update updates the resource and sets the updated Terraform state on success.

type WorkspaceResourceModel

type WorkspaceResourceModel struct {
	ID        types.String               `tfsdk:"id"`
	Created   customtypes.TimestampValue `tfsdk:"created"`
	Updated   customtypes.TimestampValue `tfsdk:"updated"`
	AccountID customtypes.UUIDValue      `tfsdk:"account_id"`

	Name        types.String `tfsdk:"name"`
	Handle      types.String `tfsdk:"handle"`
	Description types.String `tfsdk:"description"`
}

WorkspaceResourceModel defines the Terraform resource model.

type WorkspaceRoleResource

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

WorkspaceRoleResource contains state for the resource.

func (*WorkspaceRoleResource) Configure

Configure initializes runtime state for the resource.

func (*WorkspaceRoleResource) Create

func (*WorkspaceRoleResource) Delete

Delete deletes the resource and removes the Terraform state on success.

func (*WorkspaceRoleResource) ImportState

ImportState allows Terraform to start managing a Workspace Role resource.

func (*WorkspaceRoleResource) Metadata

Metadata returns the resource type name.

func (*WorkspaceRoleResource) Read

Read refreshes the Terraform state with the latest data.

func (*WorkspaceRoleResource) Schema

func (*WorkspaceRoleResource) Update

Update updates the resource and sets the updated Terraform state on success.

type WorkspaceRoleResourceModel

type WorkspaceRoleResourceModel struct {
	ID      types.String               `tfsdk:"id"`
	Created customtypes.TimestampValue `tfsdk:"created"`
	Updated customtypes.TimestampValue `tfsdk:"updated"`

	Name            types.String          `tfsdk:"name"`
	Description     types.String          `tfsdk:"description"`
	Scopes          types.List            `tfsdk:"scopes"`
	AccountID       customtypes.UUIDValue `tfsdk:"account_id"`
	InheritedRoleID customtypes.UUIDValue `tfsdk:"inherited_role_id"`
}

WorkspaceRoleResourceModel defines the Terraform resource model.

Jump to

Keyboard shortcuts

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