Documentation ¶
Index ¶
Constants ¶
const Name string = "kind"
Variables ¶
var Version string
Version is initialized by the Go linker to contain the semver of this build.
Functions ¶
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.