provider

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTwoPartId

func BuildTwoPartId(a, b string) string

func New

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

func NewUserDataSource

func NewUserDataSource() datasource.DataSource

func NewUsersDataSource

func NewUsersDataSource() datasource.DataSource

func NewWorkspaceDataSource

func NewWorkspaceDataSource() datasource.DataSource

func NewWorkspaceMemberDataSource

func NewWorkspaceMemberDataSource() datasource.DataSource

func NewWorkspaceMemberResource

func NewWorkspaceMemberResource() resource.Resource

func NewWorkspaceMembersDataSource

func NewWorkspaceMembersDataSource() datasource.DataSource

func NewWorkspaceResource

func NewWorkspaceResource() resource.Resource

func NewWorkspacesDataSource

func NewWorkspacesDataSource() datasource.DataSource

func SplitTwoPartId

func SplitTwoPartId(id, a, b string) (string, string, error)

Types

type AnthropicProvider

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

AnthropicProvider defines the provider implementation.

func (*AnthropicProvider) Configure

func (*AnthropicProvider) DataSources

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

func (*AnthropicProvider) Functions

func (p *AnthropicProvider) Functions(ctx context.Context) []func() function.Function

func (*AnthropicProvider) Metadata

func (*AnthropicProvider) Resources

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

func (*AnthropicProvider) Schema

type AnthropicProviderModel

type AnthropicProviderModel struct {
	BaseUrl types.String `tfsdk:"base_url"`
	ApiKey  types.String `tfsdk:"api_key"`
}

AnthropicProviderModel describes the provider data model.

type UserDataSource

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

func (*UserDataSource) Configure

func (d *UserDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

func (*UserDataSource) Metadata

func (*UserDataSource) Read

func (*UserDataSource) Schema

type UserDataSourceModel

type UserDataSourceModel struct {
	Id      types.String `tfsdk:"id"`
	Email   types.String `tfsdk:"email"`
	Name    types.String `tfsdk:"name"`
	Role    types.String `tfsdk:"role"`
	AddedAt types.String `tfsdk:"added_at"`
}

func (*UserDataSourceModel) Fill

type UsersDataSource

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

func (*UsersDataSource) Configure

func (d *UsersDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

func (*UsersDataSource) Metadata

func (*UsersDataSource) Read

func (*UsersDataSource) Schema

type UsersDataSourceModel

type UsersDataSourceModel struct {
	Users []UserDataSourceModel `tfsdk:"users"`
}

func (*UsersDataSourceModel) Fill

func (m *UsersDataSourceModel) Fill(users []apiclient.User) error

type WorkspaceDataSource

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

func (*WorkspaceDataSource) Configure

func (d *WorkspaceDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

func (*WorkspaceDataSource) Metadata

func (*WorkspaceDataSource) Read

func (*WorkspaceDataSource) Schema

type WorkspaceMemberDataSource

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

func (*WorkspaceMemberDataSource) Configure

func (d *WorkspaceMemberDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

func (*WorkspaceMemberDataSource) Metadata

func (*WorkspaceMemberDataSource) Read

func (*WorkspaceMemberDataSource) Schema

type WorkspaceMemberModel

type WorkspaceMemberModel struct {
	WorkspaceId   types.String `tfsdk:"workspace_id"`
	UserId        types.String `tfsdk:"user_id"`
	WorkspaceRole types.String `tfsdk:"workspace_role"`
}

func (*WorkspaceMemberModel) Fill

type WorkspaceMemberResource

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

func (*WorkspaceMemberResource) Configure

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

func (*WorkspaceMemberResource) Create

func (*WorkspaceMemberResource) Delete

func (*WorkspaceMemberResource) ImportState

func (*WorkspaceMemberResource) Metadata

func (*WorkspaceMemberResource) Read

func (*WorkspaceMemberResource) Schema

func (*WorkspaceMemberResource) Update

type WorkspaceMembersDataSource

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

func (*WorkspaceMembersDataSource) Configure

func (d *WorkspaceMembersDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

func (*WorkspaceMembersDataSource) Metadata

func (*WorkspaceMembersDataSource) Read

func (*WorkspaceMembersDataSource) Schema

type WorkspaceMembersDataSourceModel

type WorkspaceMembersDataSourceModel struct {
	Id      types.String           `tfsdk:"id"`
	Members []WorkspaceMemberModel `tfsdk:"members"`
}

func (*WorkspaceMembersDataSourceModel) Fill

type WorkspaceModel

type WorkspaceModel struct {
	Id           types.String `tfsdk:"id"`
	Name         types.String `tfsdk:"name"`
	CreatedAt    types.String `tfsdk:"created_at"`
	ArchivedAt   types.String `tfsdk:"archived_at"`
	DisplayColor types.String `tfsdk:"display_color"`
}

func (*WorkspaceModel) Fill

type WorkspaceResource

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

func (*WorkspaceResource) Configure

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

func (*WorkspaceResource) Create

func (*WorkspaceResource) Delete

func (*WorkspaceResource) ImportState

func (*WorkspaceResource) Metadata

func (*WorkspaceResource) Read

func (*WorkspaceResource) Schema

func (*WorkspaceResource) Update

type WorkspacesDataSource

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

func (*WorkspacesDataSource) Configure

func (d *WorkspacesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)

func (*WorkspacesDataSource) Metadata

func (*WorkspacesDataSource) Read

func (*WorkspacesDataSource) Schema

type WorkspacesDataSourceModel

type WorkspacesDataSourceModel struct {
	Workspaces []WorkspaceModel `tfsdk:"workspaces"`
}

func (*WorkspacesDataSourceModel) Fill

func (m *WorkspacesDataSourceModel) Fill(workspaces []apiclient.Workspace) error

Jump to

Keyboard shortcuts

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