provider

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 22 Imported by: 0

README

MSR Terraform Provider

MSR API integration as a Terraform provider.

Documentation

Index

Constants

View Source
const (
	TestingVersion = "test"
)

Variables

This section is empty.

Functions

func New

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

func NewAccountDataSource

func NewAccountDataSource() datasource.DataSource

func NewOrgResource

func NewOrgResource() resource.Resource

func NewPruningPolicyResource added in v0.9.4

func NewPruningPolicyResource() resource.Resource

func NewRepoResource

func NewRepoResource() resource.Resource

func NewTeamResource

func NewTeamResource() resource.Resource

func NewUserResource

func NewUserResource() resource.Resource

func NewaccountsDataSource

func NewaccountsDataSource() datasource.DataSource

Types

type MSRProvider

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

MSRProvider defines the provider implementation.

func (*MSRProvider) Configure

func (*MSRProvider) DataSources

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

func (*MSRProvider) Metadata

func (*MSRProvider) Resources

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

func (*MSRProvider) Schema

type MSRProviderModel

type MSRProviderModel struct {
	Host            types.String `tfsdk:"host"`
	Username        types.String `tfsdk:"username"`
	Password        types.String `tfsdk:"password"`
	UnsafeSSLClient types.Bool   `tfsdk:"unsafe_ssl_client"`
}

MSRProviderModel describes the provider data model.

type OrgResource

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

func (*OrgResource) Configure

func (*OrgResource) Create

func (*OrgResource) Delete

func (*OrgResource) ImportState

func (*OrgResource) Metadata

func (*OrgResource) Read

func (*OrgResource) Schema

func (*OrgResource) Update

type OrgResourceModel

type OrgResourceModel struct {
	Name types.String `tfsdk:"name"`
	Id   types.String `tfsdk:"id"`
}

type PruningPolicyResource added in v0.9.4

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

func (*PruningPolicyResource) Configure added in v0.9.4

func (*PruningPolicyResource) Create added in v0.9.4

func (*PruningPolicyResource) Delete added in v0.9.4

func (*PruningPolicyResource) ImportState added in v0.9.4

func (*PruningPolicyResource) Metadata added in v0.9.4

func (*PruningPolicyResource) Read added in v0.9.4

func (*PruningPolicyResource) Schema added in v0.9.4

func (*PruningPolicyResource) Update added in v0.9.4

type PruningPolicyResourceModel added in v0.9.4

type PruningPolicyResourceModel struct {
	Id       types.String                    `tfsdk:"id"`
	Enabled  types.Bool                      `tfsdk:"enabled"`
	OrgName  types.String                    `tfsdk:"org_name"`
	RepoName types.String                    `tfsdk:"repo_name"`
	Rules    []client.PruningPolicyRuleTFSDK `tfsdk:"rule"`
}

type RepoResource

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

func (*RepoResource) Configure

func (*RepoResource) Create

func (*RepoResource) Delete

func (*RepoResource) ImportState

func (*RepoResource) Metadata

func (*RepoResource) Read

func (*RepoResource) Schema

func (*RepoResource) Update

type RepoResourceModel

type RepoResourceModel struct {
	Name       types.String `tfsdk:"name"`
	OrgName    types.String `tfsdk:"org_name"`
	ScanOnPush types.Bool   `tfsdk:"scan_on_push"`
	Visibility types.String `tfsdk:"visibility"`
	Id         types.String `tfsdk:"id"`
}

type TeamResource

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

func (*TeamResource) Configure

func (*TeamResource) Create

func (*TeamResource) Delete

func (*TeamResource) ImportState

func (*TeamResource) Metadata

func (*TeamResource) Read

func (*TeamResource) Schema

func (*TeamResource) Update

type TeamResourceModel

type TeamResourceModel struct {
	Name        types.String `tfsdk:"name"`
	OrgID       types.String `tfsdk:"org_id"`
	Description types.String `tfsdk:"description"`
	UserIDs     types.List   `tfsdk:"user_ids"`
	Id          types.String `tfsdk:"id"`
}

type UserResource

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

func (*UserResource) Configure

func (*UserResource) Create

func (*UserResource) Delete

func (*UserResource) ImportState

func (*UserResource) Metadata

func (*UserResource) Read

func (*UserResource) Schema

func (*UserResource) Update

type UserResourceModel

type UserResourceModel struct {
	Name     types.String `tfsdk:"name"`
	Password types.String `tfsdk:"password"`
	FullName types.String `tfsdk:"full_name"`
	IsAdmin  types.Bool   `tfsdk:"is_admin"`
	Id       types.String `tfsdk:"id"`
}

Jump to

Keyboard shortcuts

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