provider

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomRegistryObjectType = types.ObjectType{
	AttrTypes: map[string]attr.Type{
		"address":       types.StringType,
		"friendly_name": types.StringType,
		"allowed":       types.BoolType,
	},
}
View Source
var StandardRegistryObjectType = types.ObjectType{
	AttrTypes: map[string]attr.Type{
		"allowed": types.BoolType,
	},
}

Functions

func New

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

func NewAccessTokenDataSource

func NewAccessTokenDataSource() datasource.DataSource

func NewAccessTokenResource

func NewAccessTokenResource() resource.Resource

func NewAccessTokensDataSource

func NewAccessTokensDataSource() datasource.DataSource

func NewLoginDataSource added in v0.3.1

func NewLoginDataSource() datasource.DataSource

func NewOrgDataSource

func NewOrgDataSource() datasource.DataSource

func NewOrgMemberResource added in v0.2.0

func NewOrgMemberResource() resource.Resource

func NewOrgSettingImageAccessManagementResource

func NewOrgSettingImageAccessManagementResource() resource.Resource

func NewOrgSettingRegistryAccessManagementResource

func NewOrgSettingRegistryAccessManagementResource() resource.Resource

func NewOrgTeamDataSource added in v0.2.0

func NewOrgTeamDataSource() datasource.DataSource

func NewOrgTeamMemberDataSource

func NewOrgTeamMemberDataSource() datasource.DataSource

func NewOrgTeamMemberResource added in v0.2.1

func NewOrgTeamMemberResource() resource.Resource

func NewOrgTeamResource

func NewOrgTeamResource() resource.Resource

func NewRepositoriesDataSource

func NewRepositoriesDataSource() datasource.DataSource

func NewRepositoryDataSource

func NewRepositoryDataSource() datasource.DataSource

func NewRepositoryResource

func NewRepositoryResource() resource.Resource

func NewRepositoryTeamPermissionResource

func NewRepositoryTeamPermissionResource() resource.Resource

Types

type AccessTokenDataSource

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

func (*AccessTokenDataSource) Configure

func (*AccessTokenDataSource) Metadata

func (*AccessTokenDataSource) Read

func (*AccessTokenDataSource) Schema

type AccessTokenDataSourceModel

type AccessTokenDataSourceModel struct {
	UUID        types.String `tfsdk:"uuid"`
	ClientID    types.String `tfsdk:"client_id"`
	CreatorIP   types.String `tfsdk:"creator_ip"`
	CreatorUA   types.String `tfsdk:"creator_ua"`
	CreatedAt   types.String `tfsdk:"created_at"`
	LastUsed    types.String `tfsdk:"last_used"`
	GeneratedBy types.String `tfsdk:"generated_by"`
	IsActive    types.Bool   `tfsdk:"is_active"`
	Token       types.String `tfsdk:"token"`
	TokenLabel  types.String `tfsdk:"token_label"`
	Scopes      types.List   `tfsdk:"scopes"`
}

type AccessTokenResource

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

func (*AccessTokenResource) Configure

func (*AccessTokenResource) Create

func (*AccessTokenResource) Delete

func (*AccessTokenResource) ImportState

func (*AccessTokenResource) Metadata

func (*AccessTokenResource) Read

func (*AccessTokenResource) Schema

func (*AccessTokenResource) Update

type AccessTokenResourceModel

type AccessTokenResourceModel struct {
	UUID       types.String `tfsdk:"uuid"`
	IsActive   types.Bool   `tfsdk:"is_active"`
	TokenLabel types.String `tfsdk:"token_label"`
	Scopes     types.List   `tfsdk:"scopes"`
	Token      types.String `tfsdk:"token"`
}

type AccessTokensDataSource

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

func (*AccessTokensDataSource) Configure

func (*AccessTokensDataSource) Metadata

func (*AccessTokensDataSource) Read

func (*AccessTokensDataSource) Schema

type AccessTokensDataSourceModel

type AccessTokensDataSourceModel struct {
	UUIDs types.List `tfsdk:"uuids"`
}

type CustomRegistryModel

type CustomRegistryModel struct {
	Address      types.String `tfsdk:"address"`
	FriendlyName types.String `tfsdk:"friendly_name"`
	Allowed      types.Bool   `tfsdk:"allowed"`
}

type DockerProvider

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

DockerProvider defines the provider implementation.

func (*DockerProvider) Configure

func (*DockerProvider) DataSources

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

func (*DockerProvider) Functions

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

func (*DockerProvider) Metadata

func (*DockerProvider) Resources

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

func (*DockerProvider) Schema

type DockerProviderModel

type DockerProviderModel struct {
	Username types.String `tfsdk:"username"`
	Host     types.String `tfsdk:"host"`
}

DockerProviderModel describes the provider data model.

type LoginDataSource added in v0.3.1

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

func (*LoginDataSource) Configure added in v0.3.1

func (*LoginDataSource) Metadata added in v0.3.1

func (*LoginDataSource) Read added in v0.3.1

func (*LoginDataSource) Schema added in v0.3.1

type LoginDataSourceModel added in v0.3.1

type LoginDataSourceModel struct {
	Username types.String `tfsdk:"username"`
}

type Member

type Member struct {
	ID            types.String `tfsdk:"id"`
	UUID          types.String `tfsdk:"uuid"`
	Username      types.String `tfsdk:"username"`
	FullName      types.String `tfsdk:"full_name"`
	Location      types.String `tfsdk:"location"`
	Company       types.String `tfsdk:"company"`
	ProfileURL    types.String `tfsdk:"profile_url"`
	DateJoined    types.String `tfsdk:"date_joined"`
	GravatarURL   types.String `tfsdk:"gravatar_url"`
	GravatarEmail types.String `tfsdk:"gravatar_email"`
	Type          types.String `tfsdk:"type"`
	Email         types.String `tfsdk:"email"`
	Role          types.String `tfsdk:"role"`
	Groups        types.List   `tfsdk:"groups"`
	IsGuest       types.Bool   `tfsdk:"is_guest"`
	PrimaryEmail  types.String `tfsdk:"primary_email"`
}

type OrgDataSource

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

func (*OrgDataSource) Configure

func (*OrgDataSource) Metadata

func (*OrgDataSource) Read

func (*OrgDataSource) Schema

type OrgDataSourceModel

type OrgDataSourceModel struct {
	ID         types.String `tfsdk:"id"`
	OrgName    types.String `tfsdk:"org_name"`
	FullName   types.String `tfsdk:"full_name"`
	Location   types.String `tfsdk:"location"`
	Company    types.String `tfsdk:"company"`
	DateJoined types.String `tfsdk:"date_joined"`
}

type OrgMemberResource added in v0.2.0

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

func (*OrgMemberResource) Configure added in v0.2.0

func (*OrgMemberResource) Create added in v0.2.0

func (*OrgMemberResource) Delete added in v0.2.0

func (*OrgMemberResource) ImportState added in v0.2.0

TODO: setup import state

func (*OrgMemberResource) Metadata added in v0.2.0

func (*OrgMemberResource) Read added in v0.2.0

TODO: finish read

func (*OrgMemberResource) Schema added in v0.2.0

func (*OrgMemberResource) Update added in v0.2.0

TODO: setup update

type OrgMemberResourceModel added in v0.2.0

type OrgMemberResourceModel struct {
	OrgName  types.String `tfsdk:"org_name"`
	TeamName types.String `tfsdk:"team_name"`
	UserName types.String `tfsdk:"user_name"`
	Role     types.String `tfsdk:"role"`      // New field for role
	InviteID types.String `tfsdk:"invite_id"` // This is needed for deletion
}

type OrgSettingImageAccessManagementResource

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

func (*OrgSettingImageAccessManagementResource) Configure

func (*OrgSettingImageAccessManagementResource) Create

func (*OrgSettingImageAccessManagementResource) Delete

func (*OrgSettingImageAccessManagementResource) ImportState

func (*OrgSettingImageAccessManagementResource) Metadata

func (*OrgSettingImageAccessManagementResource) Read

func (*OrgSettingImageAccessManagementResource) Schema

func (*OrgSettingImageAccessManagementResource) Update

type OrgSettingImageAccessManagementResourceModel

type OrgSettingImageAccessManagementResourceModel struct {
	OrgName                 types.String `tfsdk:"org_name"`
	Enabled                 types.Bool   `tfsdk:"enabled"`
	AllowOfficialImages     types.Bool   `tfsdk:"allow_official_images"`
	AllowVerifiedPublishers types.Bool   `tfsdk:"allow_verified_publishers"`
}

type OrgSettingRegistryAccessManagementResource

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

func (*OrgSettingRegistryAccessManagementResource) Configure

func (*OrgSettingRegistryAccessManagementResource) Create

func (*OrgSettingRegistryAccessManagementResource) Delete

func (*OrgSettingRegistryAccessManagementResource) ImportState

func (*OrgSettingRegistryAccessManagementResource) Metadata

func (*OrgSettingRegistryAccessManagementResource) Read

func (*OrgSettingRegistryAccessManagementResource) Schema

func (*OrgSettingRegistryAccessManagementResource) Update

type OrgSettingRegistryAccessManagementResourceModel

type OrgSettingRegistryAccessManagementResourceModel struct {
	OrgName                types.String `tfsdk:"org_name"`
	Enabled                types.Bool   `tfsdk:"enabled"`
	StandardRegistryDocker types.Object `tfsdk:"standard_registry_docker_hub"`
	CustomRegistries       types.Set    `tfsdk:"custom_registries"`
}

type OrgTeamDataSource added in v0.2.0

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

func (*OrgTeamDataSource) Configure added in v0.2.0

func (*OrgTeamDataSource) Metadata added in v0.2.0

func (*OrgTeamDataSource) Read added in v0.2.0

func (*OrgTeamDataSource) Schema added in v0.2.0

type OrgTeamDataSourceModel added in v0.2.0

type OrgTeamDataSourceModel struct {
	ID          types.Int64  `tfsdk:"id"`
	OrgName     types.String `tfsdk:"org_name"`
	TeamName    types.String `tfsdk:"team_name"`
	UUID        types.String `tfsdk:"uuid"`
	Description types.String `tfsdk:"description"`
	MemberCount types.Int64  `tfsdk:"member_count"`
}

type OrgTeamMemberDataSource

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

func (*OrgTeamMemberDataSource) Configure

func (*OrgTeamMemberDataSource) Metadata

func (*OrgTeamMemberDataSource) Read

func (*OrgTeamMemberDataSource) Schema

type OrgTeamMemberDataSourceModel

type OrgTeamMemberDataSourceModel struct {
	OrgName  types.String `tfsdk:"org_name"`
	TeamName types.String `tfsdk:"team_name"`
	Members  []Member     `tfsdk:"members"`
}

type OrgTeamMemberResource added in v0.2.1

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

func (*OrgTeamMemberResource) Configure added in v0.2.1

func (*OrgTeamMemberResource) Create added in v0.2.1

func (*OrgTeamMemberResource) Delete added in v0.2.1

func (*OrgTeamMemberResource) ImportState added in v0.2.1

func (*OrgTeamMemberResource) Metadata added in v0.2.1

func (*OrgTeamMemberResource) Read added in v0.2.1

func (*OrgTeamMemberResource) Schema added in v0.2.1

func (*OrgTeamMemberResource) Update added in v0.2.1

type OrgTeamMemberResourceModel added in v0.2.1

type OrgTeamMemberResourceModel struct {
	ID       types.String `tfsdk:"id"`
	OrgName  types.String `tfsdk:"org_name"`
	TeamName types.String `tfsdk:"team_name"`
	UserName types.String `tfsdk:"user_name"`
}

type OrgTeamResource

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

func (*OrgTeamResource) Configure

func (*OrgTeamResource) Create

func (*OrgTeamResource) Delete

func (*OrgTeamResource) ImportState

func (*OrgTeamResource) Metadata

func (*OrgTeamResource) Read

func (*OrgTeamResource) Schema

func (*OrgTeamResource) Update

type OrgTeamResourceModel

type OrgTeamResourceModel struct {
	ID       types.Int64  `tfsdk:"id"`
	OrgName  types.String `tfsdk:"org_name"`
	TeamName types.String `tfsdk:"team_name"`
	TeamDesc types.String `tfsdk:"team_description"`
}

type RepositoriesDataSource

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

func (*RepositoriesDataSource) Configure

func (*RepositoriesDataSource) Metadata

func (*RepositoriesDataSource) Read

func (*RepositoriesDataSource) Schema

type RepositoriesDataSourceModel

type RepositoriesDataSourceModel struct {
	ID               types.String `tfsdk:"id"`
	Namespace        types.String `tfsdk:"namespace"`
	MaxNumberResults types.Int64  `tfsdk:"max_number_results"`
	Repository       []Repository `tfsdk:"repository"`
}

type Repository

type Repository struct {
	Name        types.String `tfsdk:"name"`
	Namespace   types.String `tfsdk:"namespace"`
	Description types.String `tfsdk:"description"`
	IsPrivate   types.Bool   `tfsdk:"is_private"`
	PullCount   types.Int64  `tfsdk:"pull_count"`
	LastUpdated types.String `tfsdk:"last_updated"`
	Affiliation types.String `tfsdk:"affiliation"`
}

type RepositoryDataSource

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

func (*RepositoryDataSource) Configure

func (*RepositoryDataSource) Metadata

func (*RepositoryDataSource) Read

func (*RepositoryDataSource) Schema

type RepositoryDataSourceModel

type RepositoryDataSourceModel struct {
	ID              types.String `tfsdk:"id"`
	Namespace       types.String `tfsdk:"namespace"`
	Name            types.String `tfsdk:"name"`
	Description     types.String `tfsdk:"description"`
	FullDescription types.String `tfsdk:"full_description"`
	Private         types.Bool   `tfsdk:"private"`
	PullCount       types.Int64  `tfsdk:"pull_count"`
}

type RepositoryResource

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

func (*RepositoryResource) Configure

Configure implements resource.ResourceWithConfigure.

func (*RepositoryResource) Create

Create implements resource.Resource.

func (*RepositoryResource) Delete

func (*RepositoryResource) ImportState

func (*RepositoryResource) Metadata

Metadata implements resource.Resource.

func (*RepositoryResource) Read

Read implements resource.Resource.

func (*RepositoryResource) Schema

Schema implements resource.Resource.

func (*RepositoryResource) Update

Update implements resource.Resource.

type RepositoryResourceModel

type RepositoryResourceModel struct {
	ID              types.String `tfsdk:"id"`
	Namespace       types.String `tfsdk:"namespace"`
	Name            types.String `tfsdk:"name"`
	Description     types.String `tfsdk:"description"`
	FullDescription types.String `tfsdk:"full_description"`
	Private         types.Bool   `tfsdk:"private"`
	PullCount       types.Int64  `tfsdk:"pull_count"`
}

type RepositoryTeamPermissionResource

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

func (*RepositoryTeamPermissionResource) Configure

func (*RepositoryTeamPermissionResource) Create

func (*RepositoryTeamPermissionResource) Delete

func (*RepositoryTeamPermissionResource) ImportState

func (*RepositoryTeamPermissionResource) Metadata

func (*RepositoryTeamPermissionResource) Read

func (*RepositoryTeamPermissionResource) Schema

func (*RepositoryTeamPermissionResource) Update

type RepositoryTeamPermissionResourceModel

type RepositoryTeamPermissionResourceModel struct {
	RepoID     types.String `tfsdk:"repo_id"`
	TeamID     types.Int64  `tfsdk:"team_id"`
	Permission types.String `tfsdk:"permission"`
}

type StandardRegistryModel

type StandardRegistryModel struct {
	Allowed types.Bool `tfsdk:"allowed"`
}

Jump to

Keyboard shortcuts

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