Documentation
¶
Index ¶
- Constants
- func ListBucketResources(ctx context.Context, client Client) ([]core.IntegrationResource, error)
- func SetClientFactory(...)
- type Bucket
- type BucketNodeMetadata
- type Client
- type CreateBucket
- func (c *CreateBucket) Cancel(ctx core.ExecutionContext) error
- func (c *CreateBucket) Cleanup(ctx core.SetupContext) error
- func (c *CreateBucket) Color() string
- func (c *CreateBucket) Configuration() []configuration.Field
- func (c *CreateBucket) Description() string
- func (c *CreateBucket) Documentation() string
- func (c *CreateBucket) ExampleOutput() map[string]any
- func (c *CreateBucket) Execute(ctx core.ExecutionContext) error
- func (c *CreateBucket) HandleHook(ctx core.ActionHookContext) error
- func (c *CreateBucket) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (c *CreateBucket) Hooks() []core.Hook
- func (c *CreateBucket) Icon() string
- func (c *CreateBucket) Label() string
- func (c *CreateBucket) Name() string
- func (c *CreateBucket) OutputChannels(configuration any) []core.OutputChannel
- func (c *CreateBucket) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (c *CreateBucket) Setup(ctx core.SetupContext) error
- type CreateBucketSpec
- type DeleteBucket
- func (d *DeleteBucket) Cancel(ctx core.ExecutionContext) error
- func (d *DeleteBucket) Cleanup(ctx core.SetupContext) error
- func (d *DeleteBucket) Color() string
- func (d *DeleteBucket) Configuration() []configuration.Field
- func (d *DeleteBucket) Description() string
- func (d *DeleteBucket) Documentation() string
- func (d *DeleteBucket) ExampleOutput() map[string]any
- func (d *DeleteBucket) Execute(ctx core.ExecutionContext) error
- func (d *DeleteBucket) HandleHook(ctx core.ActionHookContext) error
- func (d *DeleteBucket) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (d *DeleteBucket) Hooks() []core.Hook
- func (d *DeleteBucket) Icon() string
- func (d *DeleteBucket) Label() string
- func (d *DeleteBucket) Name() string
- func (d *DeleteBucket) OutputChannels(configuration any) []core.OutputChannel
- func (d *DeleteBucket) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (d *DeleteBucket) Setup(ctx core.SetupContext) error
- type DeleteBucketSpec
- type GetBucket
- func (g *GetBucket) Cancel(ctx core.ExecutionContext) error
- func (g *GetBucket) Cleanup(ctx core.SetupContext) error
- func (g *GetBucket) Color() string
- func (g *GetBucket) Configuration() []configuration.Field
- func (g *GetBucket) Description() string
- func (g *GetBucket) Documentation() string
- func (g *GetBucket) ExampleOutput() map[string]any
- func (g *GetBucket) Execute(ctx core.ExecutionContext) error
- func (g *GetBucket) HandleHook(ctx core.ActionHookContext) error
- func (g *GetBucket) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (g *GetBucket) Hooks() []core.Hook
- func (g *GetBucket) Icon() string
- func (g *GetBucket) Label() string
- func (g *GetBucket) Name() string
- func (g *GetBucket) OutputChannels(configuration any) []core.OutputChannel
- func (g *GetBucket) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
- func (g *GetBucket) Setup(ctx core.SetupContext) error
- type GetBucketSpec
Constants ¶
View Source
const ResourceTypeBucket = "storageBucket"
ResourceTypeBucket lists the Cloud Storage buckets in the project, so the get/delete pickers can offer the existing buckets instead of free text.
Variables ¶
This section is empty.
Functions ¶
func ListBucketResources ¶
ListBucketResources lists Cloud Storage buckets for the bucket dropdown.
func SetClientFactory ¶
func SetClientFactory(fn func(httpCtx core.HTTPContext, integration core.IntegrationContext) (Client, error))
Types ¶
type Bucket ¶
type Bucket struct {
Kind string `json:"kind"`
ID string `json:"id"`
Name string `json:"name"`
SelfLink string `json:"selfLink"`
ProjectNumber string `json:"projectNumber"`
Location string `json:"location"`
LocationType string `json:"locationType"`
StorageClass string `json:"storageClass"`
TimeCreated string `json:"timeCreated"`
Updated string `json:"updated"`
Metageneration string `json:"metageneration"`
Labels map[string]string `json:"labels"`
Versioning *bucketVersioning `json:"versioning"`
IamConfiguration *iamConfiguration `json:"iamConfiguration"`
Etag string `json:"etag"`
}
Bucket models the subset of a Cloud Storage bucket resource the components use.
type BucketNodeMetadata ¶
type BucketNodeMetadata struct {
Bucket string `json:"bucket,omitempty" mapstructure:"bucket"`
}
BucketNodeMetadata is the node metadata shared by the bucket components so the collapsed node can show what it targets.
type Client ¶
type Client interface {
GetURL(ctx context.Context, fullURL string) ([]byte, error)
PostURL(ctx context.Context, fullURL string, body any) ([]byte, error)
DeleteURL(ctx context.Context, fullURL string) ([]byte, error)
ProjectID() string
}
Client is the interface used by the Cloud Storage components.
type CreateBucket ¶
type CreateBucket struct{}
func (*CreateBucket) Cancel ¶
func (c *CreateBucket) Cancel(ctx core.ExecutionContext) error
func (*CreateBucket) Cleanup ¶
func (c *CreateBucket) Cleanup(ctx core.SetupContext) error
func (*CreateBucket) Color ¶
func (c *CreateBucket) Color() string
func (*CreateBucket) Configuration ¶
func (c *CreateBucket) Configuration() []configuration.Field
func (*CreateBucket) Description ¶
func (c *CreateBucket) Description() string
func (*CreateBucket) Documentation ¶
func (c *CreateBucket) Documentation() string
func (*CreateBucket) ExampleOutput ¶
func (c *CreateBucket) ExampleOutput() map[string]any
func (*CreateBucket) Execute ¶
func (c *CreateBucket) Execute(ctx core.ExecutionContext) error
func (*CreateBucket) HandleHook ¶
func (c *CreateBucket) HandleHook(ctx core.ActionHookContext) error
func (*CreateBucket) HandleWebhook ¶
func (c *CreateBucket) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*CreateBucket) Hooks ¶
func (c *CreateBucket) Hooks() []core.Hook
func (*CreateBucket) Icon ¶
func (c *CreateBucket) Icon() string
func (*CreateBucket) Label ¶
func (c *CreateBucket) Label() string
func (*CreateBucket) Name ¶
func (c *CreateBucket) Name() string
func (*CreateBucket) OutputChannels ¶
func (c *CreateBucket) OutputChannels(configuration any) []core.OutputChannel
func (*CreateBucket) ProcessQueueItem ¶
func (c *CreateBucket) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*CreateBucket) Setup ¶
func (c *CreateBucket) Setup(ctx core.SetupContext) error
type CreateBucketSpec ¶
type CreateBucketSpec struct {
Name string `json:"name" mapstructure:"name"`
Location string `json:"location" mapstructure:"location"`
StorageClass string `json:"storageClass" mapstructure:"storageClass"`
UniformBucketLevelAccess *bool `json:"uniformBucketLevelAccess" mapstructure:"uniformBucketLevelAccess"`
Versioning *bool `json:"versioning" mapstructure:"versioning"`
Labels []labelEntry `json:"labels" mapstructure:"labels"`
}
type DeleteBucket ¶
type DeleteBucket struct{}
func (*DeleteBucket) Cancel ¶
func (d *DeleteBucket) Cancel(ctx core.ExecutionContext) error
func (*DeleteBucket) Cleanup ¶
func (d *DeleteBucket) Cleanup(ctx core.SetupContext) error
func (*DeleteBucket) Color ¶
func (d *DeleteBucket) Color() string
func (*DeleteBucket) Configuration ¶
func (d *DeleteBucket) Configuration() []configuration.Field
func (*DeleteBucket) Description ¶
func (d *DeleteBucket) Description() string
func (*DeleteBucket) Documentation ¶
func (d *DeleteBucket) Documentation() string
func (*DeleteBucket) ExampleOutput ¶
func (d *DeleteBucket) ExampleOutput() map[string]any
func (*DeleteBucket) Execute ¶
func (d *DeleteBucket) Execute(ctx core.ExecutionContext) error
func (*DeleteBucket) HandleHook ¶
func (d *DeleteBucket) HandleHook(ctx core.ActionHookContext) error
func (*DeleteBucket) HandleWebhook ¶
func (d *DeleteBucket) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*DeleteBucket) Hooks ¶
func (d *DeleteBucket) Hooks() []core.Hook
func (*DeleteBucket) Icon ¶
func (d *DeleteBucket) Icon() string
func (*DeleteBucket) Label ¶
func (d *DeleteBucket) Label() string
func (*DeleteBucket) Name ¶
func (d *DeleteBucket) Name() string
func (*DeleteBucket) OutputChannels ¶
func (d *DeleteBucket) OutputChannels(configuration any) []core.OutputChannel
func (*DeleteBucket) ProcessQueueItem ¶
func (d *DeleteBucket) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)
func (*DeleteBucket) Setup ¶
func (d *DeleteBucket) Setup(ctx core.SetupContext) error
type DeleteBucketSpec ¶
type DeleteBucketSpec struct {
Bucket string `json:"bucket" mapstructure:"bucket"`
}
type GetBucket ¶
type GetBucket struct{}
func (*GetBucket) Configuration ¶
func (g *GetBucket) Configuration() []configuration.Field
func (*GetBucket) Description ¶
func (*GetBucket) Documentation ¶
func (*GetBucket) ExampleOutput ¶
func (*GetBucket) HandleHook ¶
func (g *GetBucket) HandleHook(ctx core.ActionHookContext) error
func (*GetBucket) HandleWebhook ¶
func (g *GetBucket) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
func (*GetBucket) OutputChannels ¶
func (g *GetBucket) OutputChannels(configuration any) []core.OutputChannel
func (*GetBucket) ProcessQueueItem ¶
type GetBucketSpec ¶
type GetBucketSpec struct {
Bucket string `json:"bucket" mapstructure:"bucket"`
}
Click to show internal directories.
Click to hide internal directories.