provider

package
v0.0.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const RuntimeLabelEnv = "IMAGETEST_LABELS"

Variables

This section is empty.

Functions

func New

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

func NewFeatureResource

func NewFeatureResource() resource.Resource

func NewHarnessContainerResource

func NewHarnessContainerResource() resource.Resource

func NewHarnessK3sResource

func NewHarnessK3sResource() resource.Resource

func NewHarnessTeardownResource

func NewHarnessTeardownResource() resource.Resource

Types

type FeatureResource

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

FeatureResource defines the resource implementation.

func (*FeatureResource) Configure

func (*FeatureResource) Create

func (*FeatureResource) Delete

func (*FeatureResource) ImportState

func (*FeatureResource) Metadata

func (*FeatureResource) Read

func (*FeatureResource) Schema

func (*FeatureResource) Update

type FeatureResourceModel

type FeatureResourceModel struct {
	Id          types.String       `tfsdk:"id"`
	Name        types.String       `tfsdk:"name"`
	Description types.String       `tfsdk:"description"`
	HarnessId   types.String       `tfsdk:"harness"`
	Labels      types.Map          `tfsdk:"labels"`
	Before      []FeatureStepModel `tfsdk:"before"`
	After       []FeatureStepModel `tfsdk:"after"`
	Steps       []FeatureStepModel `tfsdk:"steps"`
}

FeatureResourceModel describes the resource data model.

type FeatureStepModel

type FeatureStepModel struct {
	Name types.String `tfsdk:"name"`
	Cmd  types.String `tfsdk:"cmd"`
}

type HarnessContainerResource

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

HarnessContainerResource defines the resource implementation.

func (*HarnessContainerResource) Configure

func (*HarnessContainerResource) Create

func (*HarnessContainerResource) Delete

func (*HarnessContainerResource) ImportState

func (*HarnessContainerResource) Metadata

func (*HarnessContainerResource) Read

func (*HarnessContainerResource) Schema

func (*HarnessContainerResource) Update

type HarnessContainerResourceModel

type HarnessContainerResourceModel struct {
	Id         types.String                         `tfsdk:"id"`
	Image      types.String                         `tfsdk:"image"`
	Privileged types.Bool                           `tfsdk:"privileged"`
	Envs       types.Map                            `tfsdk:"envs"`
	Mounts     []HarnessContainerResourceMountModel `tfsdk:"mounts"`
}

HarnessContainerResourceModel describes the resource data model.

type HarnessContainerResourceMountModel

type HarnessContainerResourceMountModel struct {
	Source      types.String `tfsdk:"source"`
	Destination types.String `tfsdk:"destination"`
}

type HarnessK3sResource

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

HarnessK3sResource defines the resource implementation.

func (*HarnessK3sResource) Configure

func (*HarnessK3sResource) Create

func (*HarnessK3sResource) Delete

func (*HarnessK3sResource) ImportState

func (*HarnessK3sResource) Metadata

func (*HarnessK3sResource) Read

func (*HarnessK3sResource) Schema

func (*HarnessK3sResource) Update

type HarnessK3sResourceModel

type HarnessK3sResourceModel struct {
	Id                   types.String `tfsdk:"id"`
	Image                types.String `tfsdk:"image"`
	DisableCni           types.Bool   `tfsdk:"disable_cni"`
	DisableTraefik       types.Bool   `tfsdk:"disable_traefik"`
	DisableMetricsServer types.Bool   `tfsdk:"disable_metrics_server"`
}

HarnessK3sResourceModel describes the resource data model.

type HarnessTeardownResource

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

HarnessTeardownResource defines the resource implementation.

func (*HarnessTeardownResource) Configure

func (*HarnessTeardownResource) Create

func (*HarnessTeardownResource) Delete

func (*HarnessTeardownResource) ImportState

func (*HarnessTeardownResource) Metadata

func (*HarnessTeardownResource) Read

func (*HarnessTeardownResource) Schema

func (*HarnessTeardownResource) Update

type HarnessTeardownResourceModel

type HarnessTeardownResourceModel struct {
	HarnessId types.String `tfsdk:"harness"`
}

HarnessTeardownResourceModel describes the resource data model.

type ImageTestProvider

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

ImageTestProvider defines the provider implementation.

func (*ImageTestProvider) Configure

func (*ImageTestProvider) DataSources

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

func (*ImageTestProvider) Metadata

func (*ImageTestProvider) Resources

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

func (*ImageTestProvider) Schema

type ImageTestProviderModel

type ImageTestProviderModel struct{}

ImageTestProviderModel describes the provider data model.

type Labels

type Labels map[string]string

func (Labels) Match

func (ls Labels) Match(matches map[string]string) bool

Match takes a map of labels and returns true if all of the given labels are present in the map

type ProviderStore

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

ProviderStore manages the global runtime state of the provider. The provider uses this to lookup the defined relationships between resources, and manage shared external state (such as open ports).

func NewProviderStore

func NewProviderStore() *ProviderStore

func (*ProviderStore) RandomID

func (s *ProviderStore) RandomID() string

Jump to

Keyboard shortcuts

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