provider

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MPL-2.0 Imports: 28 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 NewBlueprintDataSource added in v0.0.4

func NewBlueprintDataSource() datasource.DataSource

func NewGroupDataSource

func NewGroupDataSource() datasource.DataSource

func NewGroupResource

func NewGroupResource() resource.Resource

func NewGroupSubGroupDataSource added in v0.0.4

func NewGroupSubGroupDataSource() datasource.DataSource

func NewGroupSubgroupResource added in v0.0.3

func NewGroupSubgroupResource() resource.Resource

func NewProjectResource added in v0.0.3

func NewProjectResource() resource.Resource

func NewTeamDataSource

func NewTeamDataSource() datasource.DataSource

Types

type BlueprintConfigurationModel added in v0.0.4

type BlueprintConfigurationModel struct {
	Slug                types.String         `tfsdk:"slug"`
	DisplayName         types.String         `tfsdk:"display_name"`
	Description         types.String         `tfsdk:"description"`
	Tags                types.List           `tfsdk:"tags"`
	Enabled             types.Bool           `tfsdk:"enabled"`
	Published           types.Bool           `tfsdk:"published"`
	DriverConfiguration jsontypes.Normalized `tfsdk:"driver_configuration"`
	RichInputSchema     jsontypes.Normalized `tfsdk:"rich_input_schema"`
	Variables           jsontypes.Normalized `tfsdk:"variables"`
}

type BlueprintDataSource added in v0.0.4

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

BlueprintDataSource defines the data source implementation.

func (*BlueprintDataSource) Configure added in v0.0.4

func (*BlueprintDataSource) Metadata added in v0.0.4

func (*BlueprintDataSource) Read added in v0.0.4

func (*BlueprintDataSource) Schema added in v0.0.4

type BlueprintDataSourceModel added in v0.0.4

type BlueprintDataSourceModel struct {
	Id            customtypes.UUIDValue        `tfsdk:"id"`
	Slug          types.String                 `tfsdk:"slug"`
	IsOfficial    types.Bool                   `tfsdk:"is_official"`
	Type          types.String                 `tfsdk:"type"`
	Configuration *BlueprintConfigurationModel `tfsdk:"configuration"`
}

BlueprintDataSourceModel describes the data source data model.

type GroupDataSource

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

GroupDataSource defines the data source implementation.

func (*GroupDataSource) Configure

func (*GroupDataSource) Metadata

func (*GroupDataSource) Read

func (*GroupDataSource) Schema

type GroupDataSourceModel

type GroupDataSourceModel struct {
	Name   types.String          `tfsdk:"name"`
	TeamId customtypes.UUIDValue `tfsdk:"team_id"`
	Id     customtypes.UUIDValue `tfsdk:"id"`
}

GroupDataSourceModel describes the data source data model.

type GroupResource

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

GroupResource defines the resource implementation.

func (*GroupResource) Configure

func (*GroupResource) Create

func (*GroupResource) Delete

func (*GroupResource) ImportState

func (*GroupResource) Metadata

func (*GroupResource) Read

func (*GroupResource) Schema

func (*GroupResource) Update

type GroupResourceModel

type GroupResourceModel struct {
	Id     customtypes.UUIDValue `tfsdk:"id"`
	TeamId customtypes.UUIDValue `tfsdk:"team_id"`
	Name   types.String          `tfsdk:"name"`
}

GroupResourceModel describes the resource data model.

type GroupSubGroupDataSource added in v0.0.4

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

GroupSubGroupDataSource defines the data source implementation.

func (*GroupSubGroupDataSource) Configure added in v0.0.4

func (*GroupSubGroupDataSource) Metadata added in v0.0.4

func (*GroupSubGroupDataSource) Read added in v0.0.4

func (*GroupSubGroupDataSource) Schema added in v0.0.4

type GroupSubGroupDataSourceModel added in v0.0.4

type GroupSubGroupDataSourceModel struct {
	Name    types.String          `tfsdk:"name"`
	GroupId customtypes.UUIDValue `tfsdk:"group_id"`
	TeamId  customtypes.UUIDValue `tfsdk:"team_id"`
	Id      customtypes.UUIDValue `tfsdk:"id"`
}

GroupSubGroupDataSourceModel describes the data source data model.

type GroupSubgroupResource added in v0.0.3

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

GroupSubgroupResource defines the resource implementation.

func (*GroupSubgroupResource) Configure added in v0.0.3

func (*GroupSubgroupResource) Create added in v0.0.3

func (*GroupSubgroupResource) Delete added in v0.0.3

func (*GroupSubgroupResource) ImportState added in v0.0.3

func (*GroupSubgroupResource) Metadata added in v0.0.3

func (*GroupSubgroupResource) Read added in v0.0.3

func (*GroupSubgroupResource) Schema added in v0.0.3

func (*GroupSubgroupResource) Update added in v0.0.3

type GroupSubgroupResourceModel added in v0.0.3

type GroupSubgroupResourceModel struct {
	Id      customtypes.UUIDValue `tfsdk:"id"`
	GroupId customtypes.UUIDValue `tfsdk:"group_id"`
	TeamId  customtypes.UUIDValue `tfsdk:"team_id"`
	Name    types.String          `tfsdk:"name"`
}

GroupSubgroupResourceModel describes the resource data model.

type ProjectContainerBranchModel added in v0.0.3

type ProjectContainerBranchModel struct {
	ProductionBranch types.String `tfsdk:"production_branch"`
	AutoDeployBranch types.Bool   `tfsdk:"auto_deploy_branch"`
	AutoStopBranch   types.Bool   `tfsdk:"auto_stop_branch"`
	BranchIgnore     types.String `tfsdk:"branch_ignore"`
	BranchStopIgnore types.String `tfsdk:"branch_stop_ignore"`
}

type ProjectContainerModel added in v0.0.3

type ProjectContainerModel struct {
	RepoId     customtypes.UUIDValue          `tfsdk:"repo_id"`
	Source     ProjectContainerSourceModel    `tfsdk:"source"`
	Branch     *ProjectContainerBranchModel   `tfsdk:"branch"`
	Workflow   *ProjectContainerWorkflowModel `tfsdk:"workflow"`
	Build      jsontypes.Normalized           `tfsdk:"build"`
	Kubernetes jsontypes.Normalized           `tfsdk:"kubernetes"`
}

type ProjectContainerSourceModel added in v0.0.3

type ProjectContainerSourceModel struct {
	Git               jsontypes.Normalized `tfsdk:"git"`
	ContainerRegistry jsontypes.Normalized `tfsdk:"container_registry"`
}

type ProjectContainerWorkflowModel added in v0.0.3

type ProjectContainerWorkflowModel struct {
	AutoRetry            types.Bool            `tfsdk:"auto_retry"`
	AutoRollback         types.Bool            `tfsdk:"auto_rollback"`
	ManualDeploy         types.Bool            `tfsdk:"manual_deploy"`
	PipelineClusterId    customtypes.UUIDValue `tfsdk:"pipeline_cluster_id"`
	DeployTimeoutSeconds types.Int64           `tfsdk:"deploy_timeout_seconds"`
}

type ProjectDeployModel added in v0.0.3

type ProjectDeployModel struct {
	Id                   customtypes.UUIDValue `tfsdk:"id"`
	DefaultWorkflowSteps []types.String        `tfsdk:"default_workflow_steps"`
	RequirePlanApproval  types.Bool            `tfsdk:"require_plan_approval"`
	Variables            jsontypes.Normalized  `tfsdk:"variables"`
	Kubernetes           jsontypes.Normalized  `tfsdk:"kubernetes"`
	Helm                 jsontypes.Normalized  `tfsdk:"helm"`
	Terraform            jsontypes.Normalized  `tfsdk:"terraform"`
}

type ProjectResource added in v0.0.3

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

ProjectResource defines the resource implementation.

func (*ProjectResource) Configure added in v0.0.3

func (*ProjectResource) Create added in v0.0.3

func (*ProjectResource) Delete added in v0.0.3

func (*ProjectResource) ImportState added in v0.0.3

func (*ProjectResource) Metadata added in v0.0.3

func (*ProjectResource) Read added in v0.0.3

func (*ProjectResource) Schema added in v0.0.3

func (*ProjectResource) Update added in v0.0.3

type ProjectResourceModel added in v0.0.3

type ProjectResourceModel struct {
	TeamId     customtypes.UUIDValue `tfsdk:"team_id"`
	GroupId    customtypes.UUIDValue `tfsdk:"group_id"`
	SubGroupId customtypes.UUIDValue `tfsdk:"subgroup_id"`
	Id         customtypes.UUIDValue `tfsdk:"id"`

	Name        types.String          `tfsdk:"name"`
	Enabled     types.Bool            `tfsdk:"enabled"`
	BlueprintId customtypes.UUIDValue `tfsdk:"blueprint_id"`

	// for IAC based projects
	Deploys  []ProjectDeployModel  `tfsdk:"deploys"`
	Workflow *ProjectWorkflowModel `tfsdk:"workflow"`

	// for Container based projects
	Container *ProjectContainerModel `tfsdk:"container"`
}

ProjectResourceModel describes the resource data model.

func (*ProjectResourceModel) IsContainer added in v0.0.3

func (p *ProjectResourceModel) IsContainer() bool

func (*ProjectResourceModel) IsWorkflow added in v0.0.3

func (p *ProjectResourceModel) IsWorkflow() bool

type ProjectWorkflowModel added in v0.0.3

type ProjectWorkflowModel struct {
	Id    customtypes.UUIDValue `tfsdk:"id"`
	Steps jsontypes.Normalized  `tfsdk:"steps"`
}

type TeamDataSource

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

TeamDataSource defines the data source implementation.

func (*TeamDataSource) Configure

func (*TeamDataSource) Metadata

func (*TeamDataSource) Read

func (*TeamDataSource) Schema

type TeamDataSourceModel

type TeamDataSourceModel struct {
	Id   customtypes.UUIDValue `tfsdk:"id"`
	Name types.String          `tfsdk:"name"`
}

TeamDataSourceModel describes the data source data model.

type ZeetProvider

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

ZeetProvider defines the provider implementation.

func (*ZeetProvider) Configure

func (*ZeetProvider) DataSources

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

func (*ZeetProvider) Metadata

func (*ZeetProvider) Resources

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

func (*ZeetProvider) Schema

type ZeetProviderModel

type ZeetProviderModel struct {
	ApiUrl types.String `tfsdk:"api_url"`
	Token  types.String `tfsdk:"token"`
}

ZeetProviderModel describes the provider data model.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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