Documentation ¶
Index ¶
- Constants
- func New(version string) func() provider.Provider
- func NewOLMv0Resource() resource.Resource
- func NewOperatorv0Resource() resource.Resource
- type OLMProvider
- func (p *OLMProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *OLMProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *OLMProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *OLMProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *OLMProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type OLMProviderModel
- type OLMv0Resource
- func (r *OLMv0Resource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *OLMv0Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *OLMv0Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *OLMv0Resource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *OLMv0Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *OLMv0Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *OLMv0Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type Olmv0ResourceModel
- type Operatorv0Resource
- func (r *Operatorv0Resource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *Operatorv0Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *Operatorv0Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *Operatorv0Resource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *Operatorv0Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *Operatorv0Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *Operatorv0Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type Operatorv0ResourceModel
Constants ¶
const OLMv0Version = "v0.26.0"
Variables ¶
This section is empty.
Functions ¶
func New ¶
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 ¶
NewOLMv0Resource instantiates the resource with the Kubernetes client.
func NewOperatorv0Resource ¶
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 (p *OLMProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*OLMProvider) DataSources ¶
func (p *OLMProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*OLMProvider) Metadata ¶
func (p *OLMProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*OLMProvider) Resources ¶
func (p *OLMProvider) Resources(ctx context.Context) []func() resource.Resource
func (*OLMProvider) Schema ¶
func (p *OLMProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
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 (r *OLMv0Resource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*OLMv0Resource) Create ¶
func (r *OLMv0Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create method for OLMv0Resource.
func (*OLMv0Resource) Delete ¶
func (r *OLMv0Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*OLMv0Resource) Metadata ¶
func (r *OLMv0Resource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*OLMv0Resource) Read ¶
func (r *OLMv0Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*OLMv0Resource) Schema ¶
func (r *OLMv0Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema returns the schema for the OLM v0 resource.
func (*OLMv0Resource) Update ¶
func (r *OLMv0Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (r *Operatorv0Resource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*Operatorv0Resource) Create ¶
func (r *Operatorv0Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create method for Operatorv0Resource.
func (*Operatorv0Resource) Delete ¶
func (r *Operatorv0Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*Operatorv0Resource) Metadata ¶
func (r *Operatorv0Resource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*Operatorv0Resource) Read ¶
func (r *Operatorv0Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*Operatorv0Resource) Schema ¶
func (r *Operatorv0Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema returns the schema for the Operator v0 resource.
func (*Operatorv0Resource) Update ¶
func (r *Operatorv0Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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.