secrets

package
v0.0.0-...-442578e Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Secret

type Secret struct{}

func (Secret) Create

func (Secret) Create(ctx p.Context, name string, input SecretArgs, preview bool) (string, SecretState, error)

All resources must implement Create at a minumum.

func (Secret) Delete

func (Secret) Delete(ctx p.Context, name string, state SecretState) error

The Delete method will be run on deletion.

type SecretArgs

type SecretArgs struct {
	// ProjectId - Id of the project to create the secret in
	ProjectId string `pulumi:"project_id"`
	// Name - Name of the secret
	Name string `pulumi:"name"`
	// Value - Value of the secret
	Value string `pulumi:"value" provider:"secret"`
}

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

type SecretState

type SecretState struct {
	// It is generally a good idea to embed args in outputs, but it isn't strictly necessary.
	SecretArgs
}

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

Jump to

Keyboard shortcuts

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