Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewAppendResource() resource.Resource
- func NewExecTestDataSource() datasource.DataSource
- func NewGetFunction() function.Function
- func NewParseFunction() function.Function
- func NewStructureTestDataSource() datasource.DataSource
- func NewTagResource() resource.Resource
- func NewTagsResource() resource.Resource
- type AppendResource
- func (r *AppendResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *AppendResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *AppendResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *AppendResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *AppendResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *AppendResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *AppendResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *AppendResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type AppendResourceModel
- type Config
- type Descriptor
- type EnvVar
- type ExecTestDataSource
- func (d *ExecTestDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ExecTestDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ExecTestDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ExecTestDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ExecTestDataSourceModel
- type GetFunction
- type Image
- type Manifest
- type OCIProvider
- func (p *OCIProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *OCIProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *OCIProvider) Functions(ctx context.Context) []func() function.Function
- func (p *OCIProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *OCIProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *OCIProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type OCIProviderModel
- type ParseFunction
- func (s *ParseFunction) Definition(_ context.Context, _ function.DefinitionRequest, ...)
- func (s *ParseFunction) Metadata(_ context.Context, _ function.MetadataRequest, resp *function.MetadataResponse)
- func (s *ParseFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
- type Platform
- type ProviderOpts
- type StructureTestDataSource
- func (d *StructureTestDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *StructureTestDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *StructureTestDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *StructureTestDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type StructureTestDataSourceModel
- type TagResource
- func (r *TagResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *TagResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *TagResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *TagResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *TagResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *TagResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *TagResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *TagResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type TagResourceModel
- type TagsResource
- func (r *TagsResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *TagsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *TagsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *TagsResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *TagsResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *TagsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *TagsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *TagsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type TagsResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppendResource ¶
func NewExecTestDataSource ¶ added in v0.0.2
func NewExecTestDataSource() datasource.DataSource
func NewGetFunction ¶ added in v0.0.13
func NewParseFunction ¶ added in v0.0.13
func NewStructureTestDataSource ¶ added in v0.0.2
func NewStructureTestDataSource() datasource.DataSource
func NewTagResource ¶
func NewTagsResource ¶ added in v0.0.9
Types ¶
type AppendResource ¶
type AppendResource struct {
// contains filtered or unexported fields
}
AppendResource defines the resource implementation.
func (*AppendResource) Configure ¶
func (r *AppendResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*AppendResource) Create ¶
func (r *AppendResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*AppendResource) Delete ¶
func (r *AppendResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*AppendResource) ImportState ¶
func (r *AppendResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*AppendResource) Metadata ¶
func (r *AppendResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*AppendResource) Read ¶
func (r *AppendResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*AppendResource) Schema ¶
func (r *AppendResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*AppendResource) Update ¶
func (r *AppendResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type AppendResourceModel ¶
type AppendResourceModel struct { Id types.String `tfsdk:"id"` ImageRef types.String `tfsdk:"image_ref"` BaseImage types.String `tfsdk:"base_image"` Layers types.List `tfsdk:"layers"` }
AppendResourceModel describes the resource data model.
type Config ¶
type Config struct { Env []string `tfsdk:"env"` User string `tfsdk:"user"` WorkingDir string `tfsdk:"working_dir"` Entrypoint []string `tfsdk:"entrypoint"` Cmd []string `tfsdk:"cmd"` CreatedAt string `tfsdk:"created_at"` }
func (*Config) FromConfigFile ¶
func (c *Config) FromConfigFile(cf *v1.ConfigFile)
type Descriptor ¶
type Descriptor struct { MediaType string `tfsdk:"media_type"` Size int64 `tfsdk:"size"` Digest string `tfsdk:"digest"` Platform *Platform `tfsdk:"platform"` }
func ToDescriptor ¶
func ToDescriptor(d *v1.Descriptor) *Descriptor
func ToDescriptors ¶
func ToDescriptors(d []v1.Descriptor) []Descriptor
type ExecTestDataSource ¶ added in v0.0.2
type ExecTestDataSource struct {
// contains filtered or unexported fields
}
ExecTestDataSource defines the data source implementation.
func (*ExecTestDataSource) Configure ¶ added in v0.0.2
func (d *ExecTestDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ExecTestDataSource) Metadata ¶ added in v0.0.2
func (d *ExecTestDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ExecTestDataSource) Read ¶ added in v0.0.2
func (d *ExecTestDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ExecTestDataSource) Schema ¶ added in v0.0.2
func (d *ExecTestDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ExecTestDataSourceModel ¶ added in v0.0.2
type ExecTestDataSourceModel struct { Digest types.String `tfsdk:"digest"` Script types.String `tfsdk:"script"` TimeoutSeconds types.Int64 `tfsdk:"timeout_seconds"` WorkingDir types.String `tfsdk:"working_dir"` Env []EnvVar `tfsdk:"env"` ExitCode types.Int64 `tfsdk:"exit_code"` Output types.String `tfsdk:"output"` Id types.String `tfsdk:"id"` TestedRef types.String `tfsdk:"tested_ref"` }
ExecTestDataSourceModel describes the data source data model.
type GetFunction ¶ added in v0.0.13
type GetFunction struct{}
GetFunction defines the function implementation.
func (*GetFunction) Definition ¶ added in v0.0.13
func (s *GetFunction) Definition(_ context.Context, _ function.DefinitionRequest, resp *function.DefinitionResponse)
Definition should return the definition for the function.
func (*GetFunction) Metadata ¶ added in v0.0.13
func (s *GetFunction) Metadata(_ context.Context, _ function.MetadataRequest, resp *function.MetadataResponse)
Metadata should return the name of the function, such as parse_xyz.
func (*GetFunction) Run ¶ added in v0.0.13
func (s *GetFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
Run should return the result of the function logic. It is called when Terraform reaches a function call in the configuration. Argument data values should be read from the [RunRequest] and the result value set in the [RunResponse].
type Manifest ¶
type Manifest struct { SchemaVersion int64 `tfsdk:"schema_version"` MediaType string `tfsdk:"media_type"` Config *Descriptor `tfsdk:"config"` Layers []Descriptor `tfsdk:"layers"` Annotations map[string]string `tfsdk:"annotations"` Manifests []Descriptor `tfsdk:"manifests"` Subject *Descriptor `tfsdk:"subject"` }
func (*Manifest) FromDescriptor ¶
func (m *Manifest) FromDescriptor(desc *remote.Descriptor) error
type OCIProvider ¶
type OCIProvider struct {
// contains filtered or unexported fields
}
OCIProvider defines the provider implementation.
func (*OCIProvider) Configure ¶
func (p *OCIProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*OCIProvider) DataSources ¶
func (p *OCIProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*OCIProvider) Functions ¶ added in v0.0.13
func (p *OCIProvider) Functions(ctx context.Context) []func() function.Function
func (*OCIProvider) Metadata ¶
func (p *OCIProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*OCIProvider) Resources ¶
func (p *OCIProvider) Resources(ctx context.Context) []func() resource.Resource
func (*OCIProvider) Schema ¶
func (p *OCIProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type OCIProviderModel ¶
type OCIProviderModel struct {
DefaultExecTimeoutSeconds *int64 `tfsdk:"default_exec_timeout_seconds"`
}
OCIProviderModel describes the provider data model.
type ParseFunction ¶ added in v0.0.13
type ParseFunction struct{}
ParseFunction defines the function implementation.
func (*ParseFunction) Definition ¶ added in v0.0.13
func (s *ParseFunction) Definition(_ context.Context, _ function.DefinitionRequest, resp *function.DefinitionResponse)
Definition should return the definition for the function.
func (*ParseFunction) Metadata ¶ added in v0.0.13
func (s *ParseFunction) Metadata(_ context.Context, _ function.MetadataRequest, resp *function.MetadataResponse)
Metadata should return the name of the function, such as parse_xyz.
func (*ParseFunction) Run ¶ added in v0.0.13
func (s *ParseFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
Run should return the result of the function logic. It is called when Terraform reaches a function call in the configuration. Argument data values should be read from the [RunRequest] and the result value set in the [RunResponse].
type Platform ¶
type Platform struct { Architecture string `tfsdk:"architecture"` OS string `tfsdk:"os"` Variant string `tfsdk:"variant"` OSVersion string `tfsdk:"os_version"` }
func ToPlatform ¶
type ProviderOpts ¶ added in v0.0.5
type ProviderOpts struct {
// contains filtered or unexported fields
}
type StructureTestDataSource ¶ added in v0.0.2
type StructureTestDataSource struct {
// contains filtered or unexported fields
}
StructureTestDataSource defines the data source implementation.
func (*StructureTestDataSource) Configure ¶ added in v0.0.2
func (d *StructureTestDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*StructureTestDataSource) Metadata ¶ added in v0.0.2
func (d *StructureTestDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*StructureTestDataSource) Read ¶ added in v0.0.2
func (d *StructureTestDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*StructureTestDataSource) Schema ¶ added in v0.0.2
func (d *StructureTestDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type StructureTestDataSourceModel ¶ added in v0.0.2
type StructureTestDataSourceModel struct { Digest types.String `tfsdk:"digest"` Conditions []struct { Env []struct { Key types.String `tfsdk:"key"` Value types.String `tfsdk:"value"` } `tfsdk:"env"` Files []struct { Path types.String `tfsdk:"path"` Regex types.String `tfsdk:"regex"` } `tfsdk:"files"` } `tfsdk:"conditions"` Id types.String `tfsdk:"id"` TestedRef types.String `tfsdk:"tested_ref"` }
StructureTestDataSourceModel describes the data source data model.
type TagResource ¶
type TagResource struct {
// contains filtered or unexported fields
}
TagResource defines the resource implementation.
func (*TagResource) Configure ¶
func (r *TagResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*TagResource) Create ¶
func (r *TagResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*TagResource) Delete ¶
func (r *TagResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*TagResource) ImportState ¶
func (r *TagResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*TagResource) Metadata ¶
func (r *TagResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*TagResource) Read ¶
func (r *TagResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*TagResource) Schema ¶
func (r *TagResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*TagResource) Update ¶
func (r *TagResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type TagResourceModel ¶
type TagResourceModel struct { Id types.String `tfsdk:"id"` TaggedRef types.String `tfsdk:"tagged_ref"` DigestRef types.String `tfsdk:"digest_ref"` Tag types.String `tfsdk:"tag"` }
TagResourceModel describes the resource data model.
type TagsResource ¶ added in v0.0.9
type TagsResource struct {
// contains filtered or unexported fields
}
TagsResource defines the resource implementation.
func (*TagsResource) Configure ¶ added in v0.0.9
func (r *TagsResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*TagsResource) Create ¶ added in v0.0.9
func (r *TagsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*TagsResource) Delete ¶ added in v0.0.9
func (r *TagsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*TagsResource) ImportState ¶ added in v0.0.9
func (r *TagsResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*TagsResource) Metadata ¶ added in v0.0.9
func (r *TagsResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*TagsResource) Read ¶ added in v0.0.9
func (r *TagsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*TagsResource) Schema ¶ added in v0.0.9
func (r *TagsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*TagsResource) Update ¶ added in v0.0.9
func (r *TagsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)