awscreate

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 1 Imported by: 2

README

Go Report Card GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyDocumentResource

type PolicyDocumentResource struct {
	Version   string
	Statement []PolicyDocumentResourceStatementEntry
}

type PolicyDocumentResourceStatementEntry

type PolicyDocumentResourceStatementEntry struct {
	Effect    string
	Action    []string
	Principal map[string]any
	Resource  []string
}

type Provisioner

type Provisioner[T any] interface {
	Create(ctx context.Context) (T, error)
	Destroy(ctx context.Context) error
}

Provisioner is the interface that wraps the Create and Destroy methods.

func NewProvisioner

func NewProvisioner[T any](create func(ctx context.Context) (T, error), destroy func(ctx context.Context) error) Provisioner[T]

NewProvisioner returns a new Provisioner.

Directories

Path Synopsis
s3rpccreate module

Jump to

Keyboard shortcuts

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