provider

package
v0.0.0-...-f67697e Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MPL-2.0 Imports: 25 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 NewBuildResource

func NewBuildResource() resource.Resource

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 (*BuildResource) Create

func (*BuildResource) Delete

func (*BuildResource) ImportState

func (*BuildResource) Metadata

func (*BuildResource) Read

func (*BuildResource) Schema

func (*BuildResource) Update

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 (*ConfigDataSource) Metadata

func (*ConfigDataSource) Read

func (*ConfigDataSource) Schema

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 (*GraphDataSource) Metadata

func (*GraphDataSource) Read

func (*GraphDataSource) Schema

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 Package

type Package struct {
	// The name of the package
	Name string `yaml:"name"`
	// The version of the package
	Version string `yaml:"version"`
	// The monotone increasing epoch of the package
	Epoch uint32 `yaml:"epoch"`
}

type Provider

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

Provider defines the provider implementation.

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 {
	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
}

Jump to

Keyboard shortcuts

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