Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewBuildResource() resource.Resource
- func NewConfigDataSource() datasource.DataSource
- func NewGraphDataSource() datasource.DataSource
- type BuildResource
- func (r *BuildResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BuildResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BuildResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BuildResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BuildResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BuildResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BuildResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BuildResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BuildResourceModel
- type ConfigDataSource
- func (d *ConfigDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ConfigDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ConfigDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ConfigDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ConfigDataSourceModel
- type Configuration
- type GraphDataSource
- func (d *GraphDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *GraphDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *GraphDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *GraphDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type GraphDataSourceModel
- type Package
- type Provider
- func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *Provider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *Provider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *Provider) Resources(ctx context.Context) []func() resource.Resource
- func (p *Provider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type ProviderModel
- type ProviderOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBuildResource ¶
func NewConfigDataSource ¶
func NewConfigDataSource() datasource.DataSource
func NewGraphDataSource ¶
func NewGraphDataSource() datasource.DataSource
Types ¶
type BuildResource ¶
type BuildResource struct {
// contains filtered or unexported fields
}
BuildResource defines the resource implementation.
func (*BuildResource) Configure ¶
func (r *BuildResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BuildResource) Create ¶
func (r *BuildResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BuildResource) Delete ¶
func (r *BuildResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BuildResource) ImportState ¶
func (r *BuildResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*BuildResource) Metadata ¶
func (r *BuildResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BuildResource) Read ¶
func (r *BuildResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BuildResource) Schema ¶
func (r *BuildResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BuildResource) Update ¶
func (r *BuildResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BuildResourceModel ¶
type BuildResourceModel struct { Config types.Object `tfsdk:"config"` ConfigContents types.String `tfsdk:"config_contents"` Id types.String `tfsdk:"id"` ForceUpdate types.Bool `tfsdk:"force_update"` }
BuildResourceModel describes the resource data model.
type ConfigDataSource ¶
type ConfigDataSource struct {
// contains filtered or unexported fields
}
ConfigDataSource defines the data source implementation.
func (*ConfigDataSource) Configure ¶
func (d *ConfigDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ConfigDataSource) Metadata ¶
func (d *ConfigDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ConfigDataSource) Read ¶
func (d *ConfigDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ConfigDataSource) Schema ¶
func (d *ConfigDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ConfigDataSourceModel ¶
type ConfigDataSourceModel struct { ConfigContents types.String `tfsdk:"config_contents"` Config types.Object `tfsdk:"config"` Id types.String `tfsdk:"id"` }
ConfigDataSourceModel describes the data source data model.
type Configuration ¶
type Configuration struct { // Package metadata Package Package `yaml:"package"` // The specification for the packages build environment Environment apko_types.ImageConfiguration }
The root melange configuration
type GraphDataSource ¶
type GraphDataSource struct {
// contains filtered or unexported fields
}
GraphDataSource defines the data source implementation.
func (*GraphDataSource) Configure ¶
func (d *GraphDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*GraphDataSource) Metadata ¶
func (d *GraphDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*GraphDataSource) Read ¶
func (d *GraphDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*GraphDataSource) Schema ¶
func (d *GraphDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type GraphDataSourceModel ¶
type GraphDataSourceModel struct { Configs []types.Object `tfsdk:"configs"` Deps types.Map `tfsdk:"deps"` Id types.String `tfsdk:"id"` }
GraphDataSourceModel describes the data source data model.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider defines the provider implementation.
func (*Provider) Configure ¶
func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*Provider) DataSources ¶
func (p *Provider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*Provider) Metadata ¶
func (p *Provider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*Provider) Schema ¶
func (p *Provider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type ProviderModel ¶
type ProviderModel struct { ExtraRepositories []string `tfsdk:"extra_repositories"` ExtraKeyring []string `tfsdk:"extra_keyring"` DefaultArchs []string `tfsdk:"default_archs"` Dir basetypes.StringValue `tfsdk:"dir"` SigningKey basetypes.StringValue `tfsdk:"signing_key"` Runner basetypes.StringValue `tfsdk:"runner"` Namespace basetypes.StringValue `tfsdk:"namespace"` }
ProviderModel describes the provider data model.
type ProviderOpts ¶
type ProviderOpts struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.