provider

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MPL-2.0 Imports: 46 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 NewAttestResource

func NewAttestResource() resource.Resource

func NewCopyResource added in v0.0.6

func NewCopyResource() resource.Resource

func NewSignResource

func NewSignResource() resource.Resource

func NewVerifyDataSource

func NewVerifyDataSource() datasource.DataSource

Types

type AttestResource

type AttestResource struct {
	FulcioURL types.String
	RekorURL  types.String
	// contains filtered or unexported fields
}

func (*AttestResource) Configure

func (*AttestResource) Create

func (*AttestResource) Delete

func (*AttestResource) ImportState

func (*AttestResource) Metadata

func (*AttestResource) Read

func (*AttestResource) Schema

func (*AttestResource) Update

type AttestResourceModel

type AttestResourceModel struct {
	Id       types.String `tfsdk:"id"`
	Image    types.String `tfsdk:"image"`
	Conflict types.String `tfsdk:"conflict"`

	// PredicateObject, left for backward compat.
	PredicateType types.String `tfsdk:"predicate_type"`
	Predicate     types.String `tfsdk:"predicate"`
	PredicateFile types.List   `tfsdk:"predicate_file"`

	Predicates types.List `tfsdk:"predicates"`

	AttestedRef types.String `tfsdk:"attested_ref"`
	FulcioURL   types.String `tfsdk:"fulcio_url"`
	RekorURL    types.String `tfsdk:"rekor_url"`
}

type ConflictValidator added in v0.0.16

type ConflictValidator struct{}

ConflictValidator is a string validator that checks that the string is valid OCI reference by digest.

func (ConflictValidator) Description added in v0.0.16

func (v ConflictValidator) Description(context.Context) string

func (ConflictValidator) MarkdownDescription added in v0.0.16

func (v ConflictValidator) MarkdownDescription(ctx context.Context) string

func (ConflictValidator) ValidateString added in v0.0.16

type CopyResource added in v0.0.6

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

func (*CopyResource) Configure added in v0.0.6

func (*CopyResource) Create added in v0.0.6

func (*CopyResource) Delete added in v0.0.6

func (*CopyResource) ImportState added in v0.0.6

func (*CopyResource) Metadata added in v0.0.6

func (*CopyResource) Read added in v0.0.6

func (*CopyResource) Schema added in v0.0.6

func (*CopyResource) Update added in v0.0.6

type CopyResourceModel added in v0.0.6

type CopyResourceModel struct {
	Id          types.String `tfsdk:"id"`
	Source      types.String `tfsdk:"source"`
	Destination types.String `tfsdk:"destination"`

	CopiedRef types.String `tfsdk:"copied_ref"`
}

type PredicateObject added in v0.0.12

type PredicateObject struct {
	PredicateType types.String `tfsdk:"type"`
	Predicate     types.String `tfsdk:"json"`
	PredicateFile types.List   `tfsdk:"file"`
}

type Provider

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

func (*Provider) Configure

func (*Provider) DataSources

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

func (*Provider) Metadata

func (*Provider) Resources

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

func (*Provider) Schema

type ProviderModel

type ProviderModel struct {
}

ProviderModel describes the provider data model.

type ProviderOpts added in v0.0.6

type ProviderOpts struct {
	sync.Mutex
	// contains filtered or unexported fields
}

type SignResource

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

func (*SignResource) Configure

func (*SignResource) Create

func (*SignResource) Delete

func (*SignResource) ImportState

func (*SignResource) Metadata

func (*SignResource) Read

func (*SignResource) Schema

func (*SignResource) Update

type SignResourceModel

type SignResourceModel struct {
	Id        types.String `tfsdk:"id"`
	Image     types.String `tfsdk:"image"`
	Conflict  types.String `tfsdk:"conflict"`
	SignedRef types.String `tfsdk:"signed_ref"`
	FulcioURL types.String `tfsdk:"fulcio_url"`
	RekorURL  types.String `tfsdk:"rekor_url"`
}

type VerifyDataSource

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

ExampleDataSource defines the data source implementation.

func (*VerifyDataSource) Configure

func (*VerifyDataSource) Metadata

func (*VerifyDataSource) Read

func (*VerifyDataSource) Schema

type VerifyDataSourceModel

type VerifyDataSourceModel struct {
	Id          types.String `tfsdk:"id"`
	Image       types.String `tfsdk:"image"`
	Policy      types.String `tfsdk:"policy"`
	VerifiedRef types.String `tfsdk:"verified_ref"`
}

ExampleDataSourceModel describes the data source data model.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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