provider

package module
v0.0.0-...-9835fe2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Name string = "kind"

Variables

View Source
var Version string

Version is initialized by the Go linker to contain the semver of this build.

Functions

func Provider

func Provider() p.Provider

Types

type KindCluster

type KindCluster struct{}

Each resource has a controlling struct. Resource behavior is determined by implementing methods on the controlling struct. The `Create` method is mandatory, but other methods are optional. - Check: Remap inputs before they are typed. - Diff: Change how instances of a resource are compared. - Update: Mutate a resource in place. - Read: Get the state of a resource from the backing provider. - Delete: Custom logic when the resource is deleted. - Annotate: Describe fields and set defaults for a resource. - WireDependencies: Control how outputs and secrets flows through values.

func (KindCluster) Create

func (KindCluster) Create(ctx p.Context, name string, input KindClusterArgs, preview bool) (string, KindClusterState, error)

All resources must implement Create at a minumum.

func (KindCluster) Delete

func (KindCluster) Delete(ctx p.Context, name string, state KindClusterState) error

type KindClusterArgs

type KindClusterArgs struct {
	// Fields projected into Pulumi must be public and hava a `pulumi:"..."` tag.
	// The pulumi tag doesn't need to match the field name, but its generally a
	// good idea.
	Name string `pulumi:"name"`
}

Each resource has in input struct, defining what arguments it accepts.

type KindClusterState

type KindClusterState struct {
	// It is generally a good idea to embed args in outputs, but it isn't strictly necessary.
	KindClusterArgs
	// Here we define a required output called result.
	Kubeconfig string `pulumi:"kubeconfig"`
}

Each resource has a state, describing the fields that exist on the created resource.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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