storage

package
v0.72.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

Google Storage Service

This service is google.golang.org/api/pubsub/v1.Service proxy

To check all supported method run

     endly -s='gcp/storage'

To check method contract run endly -s='gcp/storage:methodName'

    endly  -s='gcp/storage:bucketAccessControlsList'

References:

Usage

  1. Setting bucket notification

endly notification authWith=myGCPSecrets

where @notification.yaml


Documentation

Index

Constants

View Source
const (
	//ServiceID Google StorageService ID.
	ServiceID = "gcp/storage"
)

Variables

This section is empty.

Functions

func InitRequest

func InitRequest(context *endly.Context, rawRequest map[string]interface{}) error

func New

func New() endly.Service

New creates a new service

Types

type CtxClient

type CtxClient struct {
	*gcp.AbstractClient
	// contains filtered or unexported fields
}

CtxClient represents context client

func GetClient

func GetClient(context *endly.Context) (*CtxClient, error)

func (*CtxClient) Service

func (s *CtxClient) Service() interface{}

func (*CtxClient) SetService

func (s *CtxClient) SetService(service interface{}) error

type SetupNotificationRequest

type SetupNotificationRequest struct {
	Bucket    string
	ProjectID string
	storage.Notification
}

SetNotification represents setup notification request

func (*SetupNotificationRequest) Init

func (r *SetupNotificationRequest) Init() error

Init initialises request

func (*SetupNotificationRequest) Validate

func (r *SetupNotificationRequest) Validate() error

Validate checks if request is valid

type SetupNotificationResponse

type SetupNotificationResponse struct {
	*storage.Notification
}

SetNotification represents setup notification response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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