project

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProjectDataSourceAttributes added in v1.1.0

func GetProjectDataSourceAttributes() (map[string]schema.Attribute, error)

func GetProjectResourceAttributes added in v1.1.0

func GetProjectResourceAttributes() (map[string]schema.Attribute, error)

func GetProjectsDataSourceSchema

func GetProjectsDataSourceSchema() *schema.Schema

GetProjectsDataSourceSchema returns the schema for the projects (plural) data source. This has to be provided explicitly because there is no schema in the OpenAPI spec for the REST API that corresponds to it.

func NewProjectDataSource

func NewProjectDataSource() datasource.DataSource

func NewProjectDataSourceState

func NewProjectDataSourceState() framework.DataSourceState

func NewProjectResource

func NewProjectResource() resource.Resource

func NewProjectResourceModel

func NewProjectResourceModel() framework.ResourceState

func NewProjectsDataSource

func NewProjectsDataSource() datasource.DataSource

func NewProjectsDataSourceState

func NewProjectsDataSourceState() framework.DataSourceState

Types

type ProjectFilterModel

type ProjectFilterModel struct {
	Organization *string  `tfsdk:"organization" hcl:"organization" cty:"organization"`
	Labels       []string `tfsdk:"labels" hcl:"labels" cty:"labels"`
}

type ProjectNameModel

type ProjectNameModel struct {
	Organization string `tfsdk:"organization" hcl:"organization" cty:"organization"`
	Name         string `tfsdk:"name" hcl:"name" cty:"name"`
}

func GetProjectDataSourceResponse

func GetProjectDataSourceResponse(projects []string) ([]ProjectNameModel, error)

type ProjectResourceModel

type ProjectResourceModel openapi.ProjectModel

func (*ProjectResourceModel) CheckReady

func (state *ProjectResourceModel) CheckReady(ctx context.Context, client openapi.ClientInterface) error

func (*ProjectResourceModel) Create

func (state *ProjectResourceModel) Create(ctx context.Context, client openapi.ClientInterface) error

func (*ProjectResourceModel) Delete

func (state *ProjectResourceModel) Delete(ctx context.Context, client openapi.ClientInterface) error

func (*ProjectResourceModel) Read

func (*ProjectResourceModel) Reset

func (state *ProjectResourceModel) Reset()

func (*ProjectResourceModel) SetId

func (state *ProjectResourceModel) SetId(id string) error

func (*ProjectResourceModel) Update

func (state *ProjectResourceModel) Update(ctx context.Context, client openapi.ClientInterface, currentState framework.ResourceState) error

type ProjectsDataSourceModel

type ProjectsDataSourceModel struct {
	Filter   *ProjectFilterModel `tfsdk:"filter" hcl:"filter" cty:"filter"`
	Projects []ProjectNameModel  `tfsdk:"projects" hcl:"projects" cty:"projects"`
}

func (*ProjectsDataSourceModel) Read

Read implements datasource.DataSource.

Jump to

Keyboard shortcuts

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