storage

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct{}

func (Bucket) Create

func (Bucket) Create(ctx p.Context, name string, input BucketArgs, preview bool) (string, BucketState, error)

All resources must implement Create at a minumum.

func (Bucket) Delete

func (Bucket) Delete(ctx p.Context, name string, state BucketState) error

type BucketArgs

type BucketArgs struct {
	// The name of the organization to create, if not provided one will be generated from the resource name
	Name *string `pulumi:"name,optional"`

	ProjectRef string `pulumi:"project_ref"`

	AllowedMimeTypes []string `pulumi:"allowed_mime_types,optional"`
	FileSizeLimit    *int64   `pulumi:"file_size_limit,optional"`
	Public           *bool    `pulumi:"public,optional"`
}

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

type BucketState

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

	// The final name of the created bucket
	BucketName string `pulumi:"bucket_name"`
}

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