openwhisk

package module
v0.0.0-...-4e90260 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

README

openwhisk-go

This repository holds and implementation of an OpenWhisk Go client, as well as examples for how to build arbitrary actions using Go.

client

Implementation of an OpenWhisk client that allows for function invocation.

docker

Docker files for particular Go environments on top of OpenWhisk base images.

models

Implementation of object models for client.

examples

Multiple examples for how to use two two client APIs, as well as how to write Docker containers that OpenWhisk can interact with.

swagger_client / swagger_models

OpenWhisk API client and models generated by swagger-go. Action invocation seems broken, so we rely on client/model for that functionality.

Updating the Swagger-generated client

Run ./update.sh

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeyValue

func NewKeyValue(key, value string) *swmodels.KeyValue

Types

type Client

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

func NewClient

func NewClient(endpoint, username, password string) (*Client, error)

func (*Client) InvokeAction

func (c *Client) InvokeAction() error

func (*Client) OverwriteAction

func (c *Client) OverwriteAction(repo, tag, actionName string, options ...OverwriteActionOption) error

type OverwriteActionOption

type OverwriteActionOption func(o *overwriteActionOptions)

Directories

Path Synopsis
examples
add-action command
addone command
echo-go command
get-actions command
invoke-action command
list-actions command

Jump to

Keyboard shortcuts

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