resource

package
v0.1.108 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILE_LIMIT     = 3000
	WILDCARD_LIMIT = 15
)

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, p *project.Project, r *rpc.Server) error

Types

type AwsResource

type AwsResource struct {
	// contains filtered or unexported fields
}

type BucketFile

type BucketFile struct {
	Source       string  `json:"source"`
	Key          string  `json:"key"`
	CacheControl *string `json:"cacheControl,omitempty"`
	ContentType  string  `json:"contentType"`
	Hash         *string `json:"hash,omitempty"`
}

type BucketFiles

type BucketFiles struct {
	*AwsResource
}

func (*BucketFiles) Create

func (*BucketFiles) Delete

func (r *BucketFiles) Delete(input *DeleteInput[BucketFilesOutputs], output *int) error

func (*BucketFiles) Update

type BucketFilesInputs

type BucketFilesInputs struct {
	BucketName string       `json:"bucketName"`
	Files      []BucketFile `json:"files"`
	Purge      bool         `json:"purge"`
}

type BucketFilesOutputs

type BucketFilesOutputs struct {
	BucketName string       `json:"bucketName,omitempty"`
	Files      []BucketFile `json:"files,omitempty"`
	Purge      bool         `json:"purge,omitempty"`
}

type CreateResult

type CreateResult[T any] struct {
	ID   string `json:"id"`
	Outs T      `json:"outs"`
}

type DeleteInput

type DeleteInput[T any] struct {
	ID   string `json:"id"`
	Outs T      `json:"outs"`
}

type DistributionDeploymentWaiterInputs

type DistributionDeploymentWaiterInputs struct {
	DistributionId string `json:"distributionId"`
	Etag           string `json:"etag"`
	Wait           bool   `json:"wait"`
}

type DistributionDeploymentWaiterOutputs

type DistributionDeploymentWaiterOutputs struct {
	IsDone bool `json:"isDone"`
}

type DistributionInvalidation

type DistributionInvalidation struct {
	*AwsResource
}

func (*DistributionInvalidation) Create

func (r *DistributionInvalidation) Create(input *DistributionInvalidationInputs, output *CreateResult[struct{}]) error

func (*DistributionInvalidation) Update

func (r *DistributionInvalidation) Update(input *UpdateInput[DistributionInvalidationInputs, struct{}], output *UpdateResult[struct{}]) error

type DistributionInvalidationInputs

type DistributionInvalidationInputs struct {
	DistributionId string   `json:"distributionId"`
	Paths          []string `json:"paths"`
	Wait           bool     `json:"wait"`
	Version        string   `json:"version"`
}

type FunctionCodeUpdater

type FunctionCodeUpdater struct {
	*AwsResource
}

func (*FunctionCodeUpdater) Create

type FunctionCodeUpdaterInputs

type FunctionCodeUpdaterInputs struct {
	S3Bucket             string `json:"s3Bucket"`
	S3Key                string `json:"s3Key"`
	FunctionName         string `json:"functionName"`
	FunctionLastModified string `json:"functionLastModified"`
	Region               string `json:"region"`
}

type FunctionCodeUpdaterOutputs

type FunctionCodeUpdaterOutputs struct {
	Version string `json:"version"`
}

type HostedZoneLookup

type HostedZoneLookup struct {
	*AwsResource
}

func (*HostedZoneLookup) Create

type HostedZoneLookupInputs

type HostedZoneLookupInputs struct {
	Domain string `json:"domain"`
}

type HostedZoneLookupOutputs

type HostedZoneLookupOutputs struct {
	ZoneId string `json:"zoneId"`
}

type OriginAccessControl added in v0.1.83

type OriginAccessControl struct {
	*AwsResource
}

func (*OriginAccessControl) Create added in v0.1.83

func (*OriginAccessControl) Delete added in v0.1.83

type OriginAccessControlInputs added in v0.1.83

type OriginAccessControlInputs struct {
	Name string `json:"name"`
}

type OriginAccessControlOutputs added in v0.1.83

type OriginAccessControlOutputs struct {
}

type OriginAccessIdentity

type OriginAccessIdentity struct {
	*AwsResource
}

func (*OriginAccessIdentity) Create

func (*OriginAccessIdentity) Delete

type OriginAccessIdentityInputs

type OriginAccessIdentityInputs struct {
}

type OriginAccessIdentityOutputs

type OriginAccessIdentityOutputs struct {
}

type Run added in v0.1.95

type Run struct {
	// contains filtered or unexported fields
}

Semaphore to limit concurrent executions

func NewRun added in v0.1.95

func NewRun() *Run

func (*Run) Create added in v0.1.95

func (r *Run) Create(input *RunInputs, output *CreateResult[RunOutputs]) error

func (*Run) Update added in v0.1.95

func (r *Run) Update(input *UpdateInput[RunInputs, RunOutputs], output *UpdateResult[RunOutputs]) error

type RunInputs added in v0.1.95

type RunInputs struct {
	Command string            `json:"command"`
	Cwd     string            `json:"cwd"`
	Env     map[string]string `json:"env"`
	Version string            `json:"version"`
}

type RunOutputs added in v0.1.95

type RunOutputs struct {
}

type UpdateInput

type UpdateInput[N any, O any] struct {
	ID   string `json:"id"`
	News N      `json:"news"`
	Olds O      `json:"olds"`
}

type UpdateResult

type UpdateResult[T any] struct {
	Outs T `json:"outs"`
}

type VectorTable

type VectorTable struct {
	*AwsResource
}

func (*VectorTable) Create

func (*VectorTable) Update

type VectorTableInputs

type VectorTableInputs struct {
	ClusterArn   string `json:"clusterArn"`
	SecretArn    string `json:"secretArn"`
	DatabaseName string `json:"databaseName"`
	TableName    string `json:"tableName"`
	Dimension    int    `json:"dimension"`
}

type VectorTableOutputs

type VectorTableOutputs struct {
	Dimension int `json:"dimension"`
}

Jump to

Keyboard shortcuts

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