Documentation ¶
Index ¶
- func BuildRoutes(service interface{}, nameTransformer func(name string) string, ...) ([]*endly.Route, error)
- func GetClient(eContext *endly.Context, provider, key interface{}, target interface{}, ...) error
- func InitCredentials(context *endly.Context, rawRequest map[string]interface{}) (*gcpCredConfig, error)
- func UpdateActionRequest(rawRequest map[string]interface{}, config *gcpCredConfig, client CtxClient)
- func Upload(httpClient *http.Client, uploadURL string, reader io.Reader) error
- type AbstractClient
- type CtxClient
- type EmptyOutput
- type OutputEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRoutes ¶
func GetClient ¶
func GetClient(eContext *endly.Context, provider, key interface{}, target interface{}, defaultScopes ...string) error
GetClient creates a new google cloud client.
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{}, config *gcpCredConfig, client CtxClient)
UpdateActionRequest updates raw request with project, service
Types ¶
type AbstractClient ¶
type AbstractClient struct { CredConfig *cred.Config HttpClinet *http.Client // contains filtered or unexported fields }
AbstractClient represents an abstract client
func (*AbstractClient) Context ¶
func (c *AbstractClient) Context() context.Context
func (*AbstractClient) SetContext ¶
func (c *AbstractClient) SetContext(ctx context.Context)
func (*AbstractClient) SetCredConfig ¶
func (c *AbstractClient) SetCredConfig(config *cred.Config)
func (*AbstractClient) SetHttpClient ¶
func (c *AbstractClient) SetHttpClient(client *http.Client)
type CtxClient ¶
type CtxClient interface { SetContext(ctx context.Context) Context() context.Context SetService(client interface{}) error Service() interface{} SetCredConfig(config *cred.Config) 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
Click to show internal directories.
Click to hide internal directories.