provider

package module
v0.0.0-...-9e2b2ea Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Name string = "youtrack"

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 Random

type Random 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 (Random) Create

func (Random) Create(ctx p.Context, name string, input RandomArgs, preview bool) (string, RandomState, error)

All resources must implement Create at a minimum.

type RandomArgs

type RandomArgs 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 it's generally a
	// good idea.
	Length int `pulumi:"length"`
}

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

type RandomState

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

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