Documentation ¶
Index ¶
- Constants
- func BuildRoutes(service interface{}, nameTransformer func(name string) string, ...) ([]*endly.Route, error)
- func ExpandMeta(context *endly.Context, text string) string
- func GetClient(eContext *endly.Context, provider, key interface{}, target interface{}, ...) error
- func GetProject(ctx *endly.Context) (*cloudresourcemanager.Project, error)
- func HasTestCredentials() bool
- func InitCredentials(context *endly.Context, rawRequest map[string]interface{}) (*gcpCredConfig, error)
- func UpdateActionRequest(rawRequest map[string]interface{}, credConfig *gcpCredConfig, client CtxClient)
- func Upload(httpClient *http.Client, uploadURL string, reader io.Reader) error
- type AbstractClient
- func (c *AbstractClient) Context() context.Context
- func (c *AbstractClient) Service() interface{}
- func (c *AbstractClient) SetContext(ctx context.Context)
- func (c *AbstractClient) SetCredConfig(config *cred.Generic)
- func (c *AbstractClient) SetHttpClient(client *http.Client)
- func (c *AbstractClient) SetService(service interface{}) error
- type CtxClient
- type EmptyOutput
- type OutputEvent
- type URLParams
Constants ¶
View Source
const DefaultRegion = "us-central1"
Variables ¶
This section is empty.
Functions ¶
func BuildRoutes ¶
func ExpandMeta ¶
ExpandMeta expand meta data
func GetClient ¶
func GetClient(eContext *endly.Context, provider, key interface{}, target interface{}, defaultScopes ...string) error
GetClient creates a new google cloud client.
func GetProject ¶
GetProject returns project info
func HasTestCredentials ¶
func HasTestCredentials() bool
HasTestCredentialSetup returns true if e2e test credentials are set
func InitCredentials ¶
func InitCredentials(context *endly.Context, rawRequest map[string]interface{}) (*gcpCredConfig, error)
InitCredentials get or creates aws credential config
func UpdateActionRequest ¶
func UpdateActionRequest(rawRequest map[string]interface{}, credConfig *gcpCredConfig, client CtxClient)
UpdateActionRequest updates raw request with project, service
Types ¶
type AbstractClient ¶
type AbstractClient struct { CredConfig *cred.Generic HttpClinet *http.Client // contains filtered or unexported fields }
AbstractClient represents an abstract client
func (*AbstractClient) Context ¶
func (c *AbstractClient) Context() context.Context
func (*AbstractClient) Service ¶
func (c *AbstractClient) Service() interface{}
func (*AbstractClient) SetContext ¶
func (c *AbstractClient) SetContext(ctx context.Context)
func (*AbstractClient) SetCredConfig ¶
func (c *AbstractClient) SetCredConfig(config *cred.Generic)
func (*AbstractClient) SetHttpClient ¶
func (c *AbstractClient) SetHttpClient(client *http.Client)
func (*AbstractClient) SetService ¶
func (c *AbstractClient) SetService(service interface{}) error
type CtxClient ¶
type CtxClient interface { SetContext(ctx context.Context) Context() context.Context SetService(client interface{}) error Service() interface{} SetCredConfig(config *cred.Generic) SetHttpClient(client *http.Client) }
CtxClient represents generic google cloud service client
type EmptyOutput ¶
type EmptyOutput struct{}
type OutputEvent ¶
func NewOutputEvent ¶
func NewOutputEvent(message string, tag string, value interface{}) *OutputEvent
func (*OutputEvent) Messages ¶
func (e *OutputEvent) Messages() []*msg.Message
Source Files ¶
Click to show internal directories.
Click to hide internal directories.