provider

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MPL-2.0 Imports: 38 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CaAttributeTypes = map[string]attr.Type{
	"crt": types.StringType,
	"key": types.StringType,
}

Functions

func ConcatDefault

func ConcatDefault(text string, d string) string

func New

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

func NewCiliumClusterMeshConnectResource

func NewCiliumClusterMeshConnectResource() resource.Resource

func NewCiliumClusterMeshEnableResource

func NewCiliumClusterMeshEnableResource() resource.Resource

func NewCiliumConfigResource

func NewCiliumConfigResource() resource.Resource

func NewCiliumDeployResource added in v0.2.3

func NewCiliumDeployResource() resource.Resource

func NewCiliumHelmValuesDataSource

func NewCiliumHelmValuesDataSource() datasource.DataSource

func NewCiliumHubbleResource

func NewCiliumHubbleResource() resource.Resource

func NewCiliumInstallResource

func NewCiliumInstallResource() resource.Resource

func NewCiliumKubeProxyDisabledResource

func NewCiliumKubeProxyDisabledResource() resource.Resource

func ValueList added in v0.2.13

func ValueList(ctx context.Context, l types.List) []string

Types

type CiliumClient added in v0.2.0

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

func (*CiliumClient) CheckDaemonsetAvailability added in v0.2.0

func (c *CiliumClient) CheckDaemonsetAvailability(ctx context.Context, namespace, daemonset string) error

func (*CiliumClient) CheckDaemonsetStatus added in v0.2.0

func (c *CiliumClient) CheckDaemonsetStatus(ctx context.Context, namespace, daemonset string) error

func (*CiliumClient) GetCA added in v0.2.1

func (c *CiliumClient) GetCA(ctx context.Context) (map[string]attr.Value, error)

func (*CiliumClient) GetCurrentRelease added in v0.2.0

func (c *CiliumClient) GetCurrentRelease() (*release.Release, error)

func (*CiliumClient) GetHelmValues added in v0.2.0

func (c *CiliumClient) GetHelmValues() (string, error)

func (*CiliumClient) GetMetadata added in v0.2.0

func (c *CiliumClient) GetMetadata() (string, error)

func (*CiliumClient) Wait added in v0.2.0

func (c *CiliumClient) Wait() (err error)

func (*CiliumClient) WaitClusterMesh added in v0.2.0

func (c *CiliumClient) WaitClusterMesh() (err error)

type CiliumClusterMeshConnectResource

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

CiliumClusterMeshConnectResource defines the resource implementation.

func (*CiliumClusterMeshConnectResource) Configure

func (*CiliumClusterMeshConnectResource) Create

func (*CiliumClusterMeshConnectResource) Delete

func (*CiliumClusterMeshConnectResource) ImportState

func (*CiliumClusterMeshConnectResource) Metadata

func (*CiliumClusterMeshConnectResource) Read

func (*CiliumClusterMeshConnectResource) Schema

func (*CiliumClusterMeshConnectResource) Update

type CiliumClusterMeshConnectResourceModel

type CiliumClusterMeshConnectResourceModel struct {
	//SourceEndpoints      types.List `tfsdk:"source_endpoint"`
	//DestinationEndpoints types.List `tfsdk:"destination_endpoint"`
	DestinationContexts types.List   `tfsdk:"destination_contexts"`
	ConnectionMode      types.String `tfsdk:"connection_mode"`
	Id                  types.String `tfsdk:"id"`
}

CiliumClusterMeshConnectResourceModel describes the resource data model.

type CiliumClusterMeshEnableResource

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

CiliumClusterMeshEnableResource defines the resource implementation.

func (*CiliumClusterMeshEnableResource) Configure

func (*CiliumClusterMeshEnableResource) Create

func (*CiliumClusterMeshEnableResource) Delete

func (*CiliumClusterMeshEnableResource) ImportState

func (*CiliumClusterMeshEnableResource) Metadata

func (*CiliumClusterMeshEnableResource) Read

func (*CiliumClusterMeshEnableResource) Schema

func (*CiliumClusterMeshEnableResource) Update

type CiliumClusterMeshEnableResourceModel

type CiliumClusterMeshEnableResourceModel struct {
	EnableExternalWorkloads types.Bool   `tfsdk:"enable_external_workloads"`
	EnableKVStoreMesh       types.Bool   `tfsdk:"enable_kv_store_mesh"`
	ServiceType             types.String `tfsdk:"service_type"`
	Wait                    types.Bool   `tfsdk:"wait"`
	Id                      types.String `tfsdk:"id"`
}

CiliumClusterMeshEnableResourceModel describes the resource data model.

type CiliumConfigResource

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

CiliumConfigResource defines the resource implementation.

func (*CiliumConfigResource) Configure

func (*CiliumConfigResource) Create

func (*CiliumConfigResource) Delete

func (*CiliumConfigResource) ImportState

func (*CiliumConfigResource) Metadata

func (*CiliumConfigResource) Read

func (*CiliumConfigResource) Schema

func (*CiliumConfigResource) Update

type CiliumConfigResourceModel

type CiliumConfigResourceModel struct {
	Restart types.Bool   `tfsdk:"restart"`
	Key     types.String `tfsdk:"key"`
	Value   types.String `tfsdk:"value"`
	Id      types.String `tfsdk:"id"`
}

CiliumConfigResourceModel describes the resource data model.

type CiliumDeployResource added in v0.2.3

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

CiliumDeployResource defines the resource implementation.

func (*CiliumDeployResource) Configure added in v0.2.3

func (*CiliumDeployResource) Create added in v0.2.3

func (*CiliumDeployResource) Delete added in v0.2.3

func (*CiliumDeployResource) ImportState added in v0.2.3

func (*CiliumDeployResource) Metadata added in v0.2.3

func (*CiliumDeployResource) Read added in v0.2.3

func (*CiliumDeployResource) Schema added in v0.2.3

func (*CiliumDeployResource) Update added in v0.2.3

type CiliumDeployResourceModel added in v0.2.3

type CiliumDeployResourceModel struct {
	HelmSet    types.List   `tfsdk:"set"`
	Values     types.String `tfsdk:"values"`
	Version    types.String `tfsdk:"version"`
	Repository types.String `tfsdk:"repository"`
	DataPath   types.String `tfsdk:"data_path"`
	Wait       types.Bool   `tfsdk:"wait"`
	Reuse      types.Bool   `tfsdk:"reuse"`
	Reset      types.Bool   `tfsdk:"reset"`
	Id         types.String `tfsdk:"id"`
	HelmValues types.String `tfsdk:"helm_values"`
}

CiliumDeployResourceModel describes the resource data model.

type CiliumHelmValuesDataSource

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

ExampleDataSource defines the data source implementation.

func (*CiliumHelmValuesDataSource) Configure

func (*CiliumHelmValuesDataSource) Metadata

func (*CiliumHelmValuesDataSource) Read

func (*CiliumHelmValuesDataSource) Schema

type CiliumHelmValuesDataSourceModel

type CiliumHelmValuesDataSourceModel struct {
	Yaml types.String `tfsdk:"yaml"`
}

ExampleDataSourceModel describes the data source data model.

type CiliumHubbleResource

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

CiliumHubbleResource defines the resource implementation.

func (*CiliumHubbleResource) Configure

func (*CiliumHubbleResource) Create

func (*CiliumHubbleResource) Delete

func (*CiliumHubbleResource) ImportState

func (*CiliumHubbleResource) Metadata

func (*CiliumHubbleResource) Read

func (*CiliumHubbleResource) Schema

func (*CiliumHubbleResource) Update

type CiliumHubbleResourceModel

type CiliumHubbleResourceModel struct {
	Relay types.Bool   `tfsdk:"relay"`
	UI    types.Bool   `tfsdk:"ui"`
	Id    types.String `tfsdk:"id"`
}

CiliumHubbleResourceModel describes the resource data model.

type CiliumInstallResource

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

CiliumInstallResource defines the resource implementation.

func (*CiliumInstallResource) Configure

func (*CiliumInstallResource) Create

func (*CiliumInstallResource) Delete

func (*CiliumInstallResource) ImportState

func (*CiliumInstallResource) Metadata

func (*CiliumInstallResource) Read

func (*CiliumInstallResource) Schema

func (*CiliumInstallResource) Update

type CiliumInstallResourceModel

type CiliumInstallResourceModel struct {
	HelmSet    types.List   `tfsdk:"set"`
	Values     types.String `tfsdk:"values"`
	Version    types.String `tfsdk:"version"`
	Repository types.String `tfsdk:"repository"`
	DataPath   types.String `tfsdk:"data_path"`
	Wait       types.Bool   `tfsdk:"wait"`
	Reuse      types.Bool   `tfsdk:"reuse"`
	Reset      types.Bool   `tfsdk:"reset"`
	Id         types.String `tfsdk:"id"`
	HelmValues types.String `tfsdk:"helm_values"`
	CA         types.Object `tfsdk:"ca"`
}

CiliumInstallResourceModel describes the resource data model.

type CiliumKubeProxyDisabledResource

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

CiliumKubeProxyDisabledResource defines the resource implementation.

func (*CiliumKubeProxyDisabledResource) Configure

func (*CiliumKubeProxyDisabledResource) Create

func (*CiliumKubeProxyDisabledResource) Delete

func (*CiliumKubeProxyDisabledResource) ImportState

func (*CiliumKubeProxyDisabledResource) Metadata

func (*CiliumKubeProxyDisabledResource) Read

func (*CiliumKubeProxyDisabledResource) Schema

func (*CiliumKubeProxyDisabledResource) Update

type CiliumKubeProxyDisabledResourceModel

type CiliumKubeProxyDisabledResourceModel struct {
	Name      types.String `tfsdk:"name"`
	Namespace types.String `tfsdk:"namespace"`
	Id        types.String `tfsdk:"id"`
}

CiliumInstallResourceModel describes the resource data model.

type CiliumProvider

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

CiliumProvider defines the provider implementation.

func (*CiliumProvider) Configure

func (*CiliumProvider) DataSources

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

func (*CiliumProvider) Metadata

func (*CiliumProvider) Resources

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

func (*CiliumProvider) Schema

type CiliumProviderModel

type CiliumProviderModel struct {
	Context       types.String `tfsdk:"context"`
	ConfigPath    types.String `tfsdk:"config_path"`
	ConfigContent types.String `tfsdk:"config_content"`
	Namespace     types.String `tfsdk:"namespace"`
	HelmRelease   types.String `tfsdk:"helm_release"`
}

CiliumProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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