provider

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const OLMv0Version = "v0.26.0"

Variables

This section is empty.

Functions

func New

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

New is the factory function to return the provider.Provider implementation. It's best practice to instantiate the provider once and configure it using the Configure method.

func NewOLMv0Resource

func NewOLMv0Resource() resource.Resource

NewOLMv0Resource instantiates the resource with the Kubernetes client.

func NewOperatorv0Resource

func NewOperatorv0Resource() resource.Resource

NewOperatorv0Resource instantiates the resource with the Kubernetes client.

Types

type OLMProvider

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

OLMProvider defines the provider implementation.

func (*OLMProvider) Configure

func (*OLMProvider) DataSources

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

func (*OLMProvider) Metadata

func (*OLMProvider) Resources

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

func (*OLMProvider) Schema

type OLMProviderModel

type OLMProviderModel struct {
	Kubeconfig        types.String `tfsdk:"kubeconfig"`
	Host              types.String `tfsdk:"host"`
	CACertificate     types.String `tfsdk:"ca_certificate"`
	ClientCertificate types.String `tfsdk:"client_certificate"`
	ClientKey         types.String `tfsdk:"client_key"`
}

OLMProviderModel describes the provider configuration.

type OLMv0Resource

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

OLMv0Resource struct.

func (*OLMv0Resource) Configure

func (*OLMv0Resource) Create

Create method for OLMv0Resource.

func (*OLMv0Resource) Delete

func (*OLMv0Resource) Metadata

func (*OLMv0Resource) Read

func (*OLMv0Resource) Schema

Schema returns the schema for the OLM v0 resource.

func (*OLMv0Resource) Update

type Olmv0ResourceModel

type Olmv0ResourceModel struct {
	Namespace types.String `tfsdk:"namespace"`
	Version   types.String `tfsdk:"version"`
	ID        types.String `tfsdk:"id"`
}

OlmV0ResourceModel represents the structure of the resource data.

type Operatorv0Resource

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

Operatorv0Resource struct.

func (*Operatorv0Resource) Configure

func (*Operatorv0Resource) Create

Create method for Operatorv0Resource.

func (*Operatorv0Resource) Delete

func (*Operatorv0Resource) Metadata

func (*Operatorv0Resource) Read

func (*Operatorv0Resource) Schema

Schema returns the schema for the Operator v0 resource.

func (*Operatorv0Resource) Update

type Operatorv0ResourceModel

type Operatorv0ResourceModel struct {
	Name                types.String `tfsdk:"name"`
	Channel             types.String `tfsdk:"channel"`
	Source              types.String `tfsdk:"source"`
	SourceNamespace     types.String `tfsdk:"source_namespace"`
	InstallPlanApproval types.String `tfsdk:"install_plan_approval"`
	Namespace           types.String `tfsdk:"namespace"`
	ID                  types.String `tfsdk:"id"`
}

Operatorv0ResourceModel represents the structure of the resource data.

Jump to

Keyboard shortcuts

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