client

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const TokenHeaderName = "cookie"

TokenHeaderName defines the cookie token

Variables

This section is empty.

Functions

func AuthWithMulti

func AuthWithMulti(writers ...runtime.ClientAuthInfoWriter) runtime.ClientAuthInfoWriter

AuthWithMulti writes authentication info to a request

func AuthWithToken

func AuthWithToken(token string) runtime.ClientAuthInfoWriter

AuthWithToken authenticates with a token

func AuthWithUserPassword

func AuthWithUserPassword(username string, password string) runtime.ClientAuthInfoWriter

AuthWithUserPassword authenticates with username and password

func DefaultHTTPClient added in v0.1.15

func DefaultHTTPClient(host, basePath string) *swaggerclient.Runtime

DefaultHTTPClient Creates a default HTTP transport for all clients

Types

type DefaultFunctionsClient

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

DefaultFunctionsClient defines the default functions client

func (*DefaultFunctionsClient) CreateFunction

func (c *DefaultFunctionsClient) CreateFunction(ctx context.Context, organizationID string, function *v1.Function) (*v1.Function, error)

CreateFunction creates and adds a new function

func (*DefaultFunctionsClient) DeleteFunction

func (c *DefaultFunctionsClient) DeleteFunction(ctx context.Context, organizationID string, functionName string) (*v1.Function, error)

DeleteFunction deletes a function

func (*DefaultFunctionsClient) GetFunction

func (c *DefaultFunctionsClient) GetFunction(ctx context.Context, organizationID string, functionName string) (*v1.Function, error)

GetFunction gets a function by name

func (*DefaultFunctionsClient) GetFunctionRun

func (c *DefaultFunctionsClient) GetFunctionRun(ctx context.Context, organizationID string, functionName string, runName string) (*v1.Run, error)

GetFunctionRun gets the results of a function run

func (*DefaultFunctionsClient) ListFunctionRuns

func (c *DefaultFunctionsClient) ListFunctionRuns(ctx context.Context, organizationID string, functionName string) ([]v1.Run, error)

ListFunctionRuns lists the available results from specific function runs

func (*DefaultFunctionsClient) ListFunctions

func (c *DefaultFunctionsClient) ListFunctions(ctx context.Context, organizationID string) ([]v1.Function, error)

ListFunctions lists all functions

func (*DefaultFunctionsClient) ListRuns

func (c *DefaultFunctionsClient) ListRuns(ctx context.Context, organizationID string) ([]v1.Run, error)

ListRuns lists all the available results from previous function runs

func (*DefaultFunctionsClient) RunFunction

func (c *DefaultFunctionsClient) RunFunction(ctx context.Context, organizationID string, run *v1.Run) (*v1.Run, error)

RunFunction runs a function

func (*DefaultFunctionsClient) UpdateFunction

func (c *DefaultFunctionsClient) UpdateFunction(ctx context.Context, organizationID string, function *v1.Function) (*v1.Function, error)

UpdateFunction updates a specific function

type DefaultImagesClient added in v0.1.15

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

DefaultImagesClient defines the default images client

func (*DefaultImagesClient) CreateBaseImage added in v0.1.15

func (c *DefaultImagesClient) CreateBaseImage(ctx context.Context, organizationID string, image *v1.BaseImage) (*v1.BaseImage, error)

CreateBaseImage creates new base image

func (*DefaultImagesClient) CreateImage added in v0.1.15

func (c *DefaultImagesClient) CreateImage(ctx context.Context, organizationID string, image *v1.Image) (*v1.Image, error)

CreateImage creates new image

func (*DefaultImagesClient) DeleteBaseImage added in v0.1.15

func (c *DefaultImagesClient) DeleteBaseImage(ctx context.Context, organizationID string, baseImageName string) (*v1.BaseImage, error)

DeleteBaseImage deletes the base image

func (*DefaultImagesClient) DeleteImage added in v0.1.15

func (c *DefaultImagesClient) DeleteImage(ctx context.Context, organizationID string, imageName string) (*v1.Image, error)

DeleteImage deletes an image

func (*DefaultImagesClient) GetBaseImage added in v0.1.15

func (c *DefaultImagesClient) GetBaseImage(ctx context.Context, organizationID string, baseImageName string) (*v1.BaseImage, error)

GetBaseImage retrieves the base image

func (*DefaultImagesClient) GetImage added in v0.1.15

func (c *DefaultImagesClient) GetImage(ctx context.Context, organizationID string, imageName string) (*v1.Image, error)

GetImage retrieves an image

func (*DefaultImagesClient) ListBaseImages added in v0.1.15

func (c *DefaultImagesClient) ListBaseImages(ctx context.Context, organizationID string) ([]v1.BaseImage, error)

ListBaseImages returns a list of base images

func (*DefaultImagesClient) ListImages added in v0.1.15

func (c *DefaultImagesClient) ListImages(ctx context.Context, organizationID string) ([]v1.Image, error)

ListImages returns a list of images

func (*DefaultImagesClient) UpdateBaseImage added in v0.1.15

func (c *DefaultImagesClient) UpdateBaseImage(ctx context.Context, organizationID string, image *v1.BaseImage) (*v1.BaseImage, error)

UpdateBaseImage updates the base image

func (*DefaultImagesClient) UpdateImage added in v0.1.15

func (c *DefaultImagesClient) UpdateImage(ctx context.Context, organizationID string, image *v1.Image) (*v1.Image, error)

UpdateImage updates an image

type DefaultSecretsClient added in v0.1.15

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

DefaultSecretsClient defines the default secrets client

func (*DefaultSecretsClient) CreateSecret added in v0.1.15

func (c *DefaultSecretsClient) CreateSecret(ctx context.Context, organizationID string, secret *v1.Secret) (*v1.Secret, error)

CreateSecret creates a secret

func (*DefaultSecretsClient) DeleteSecret added in v0.1.15

func (c *DefaultSecretsClient) DeleteSecret(ctx context.Context, organizationID string, secretName string) error

DeleteSecret deletes a secret

func (*DefaultSecretsClient) GetSecret added in v0.1.15

func (c *DefaultSecretsClient) GetSecret(ctx context.Context, organizationID string, secretName string) (*v1.Secret, error)

GetSecret retrieves a secret

func (*DefaultSecretsClient) ListSecrets added in v0.1.15

func (c *DefaultSecretsClient) ListSecrets(ctx context.Context, organizationID string) ([]v1.Secret, error)

ListSecrets lists secrets

func (*DefaultSecretsClient) UpdateSecret added in v0.1.15

func (c *DefaultSecretsClient) UpdateSecret(ctx context.Context, organizationID string, secret *v1.Secret) (*v1.Secret, error)

UpdateSecret updates a secret

type DefaultServicesClient added in v0.1.15

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

DefaultServicesClient defines the default services client

func NewServicesClient added in v0.1.15

func NewServicesClient(host string, auth runtime.ClientAuthInfoWriter) *DefaultServicesClient

NewServicesClient is used to create a new serviceInstances client

func (*DefaultServicesClient) CreateServiceInstance added in v0.1.15

func (c *DefaultServicesClient) CreateServiceInstance(ctx context.Context, instance *v1.ServiceInstance) (*v1.ServiceInstance, error)

CreateServiceInstance creates a service instance

func (*DefaultServicesClient) DeleteServiceInstance added in v0.1.15

func (c *DefaultServicesClient) DeleteServiceInstance(ctx context.Context, serviceInstanceName string) error

DeleteServiceInstance deletes a service instance

func (*DefaultServicesClient) GetServiceClass added in v0.1.15

func (c *DefaultServicesClient) GetServiceClass(ctx context.Context, serviceClassName string) (*v1.ServiceClass, error)

GetServiceClass retrieves a service class

func (*DefaultServicesClient) GetServiceInstance added in v0.1.15

func (c *DefaultServicesClient) GetServiceInstance(ctx context.Context, serviceInstanceName string) (*v1.ServiceInstance, error)

GetServiceInstance retrieves a service instance

func (*DefaultServicesClient) ListServiceClasses added in v0.1.15

func (c *DefaultServicesClient) ListServiceClasses(ctx context.Context) ([]v1.ServiceClass, error)

ListServiceClasses lists service classes

func (*DefaultServicesClient) ListServiceInstances added in v0.1.15

func (c *DefaultServicesClient) ListServiceInstances(ctx context.Context) ([]v1.ServiceInstance, error)

ListServiceInstances lists service instances

type FunctionsClient

type FunctionsClient interface {
	// Function Runner
	RunFunction(ctx context.Context, organizationID string, run *v1.Run) (*v1.Run, error)
	GetFunctionRun(ctx context.Context, organizationID string, functionName string, runName string) (*v1.Run, error)
	ListRuns(ctx context.Context, organizationID string) ([]v1.Run, error)
	ListFunctionRuns(ctx context.Context, organizationID string, functionName string) ([]v1.Run, error)

	// Function store
	CreateFunction(ctx context.Context, organizationID string, function *v1.Function) (*v1.Function, error)
	DeleteFunction(ctx context.Context, organizationID string, functionName string) (*v1.Function, error)
	GetFunction(ctx context.Context, organizationID string, functionName string) (*v1.Function, error)
	ListFunctions(ctx context.Context, organizationID string) ([]v1.Function, error)
	UpdateFunction(ctx context.Context, organizationID string, function *v1.Function) (*v1.Function, error)
}

FunctionsClient defines the function client interface

func NewFunctionsClient

func NewFunctionsClient(host string, auth runtime.ClientAuthInfoWriter) FunctionsClient

NewFunctionsClient is used to create a new functions client

type ImagesClient added in v0.1.15

type ImagesClient interface {
	// Images
	CreateImage(ctx context.Context, organizationID string, image *v1.Image) (*v1.Image, error)
	DeleteImage(ctx context.Context, organizationID string, imageName string) (*v1.Image, error)
	UpdateImage(ctx context.Context, organizationID string, image *v1.Image) (*v1.Image, error)
	GetImage(ctx context.Context, organizationID string, imageName string) (*v1.Image, error)
	ListImages(ctx context.Context, organizationID string) ([]v1.Image, error)

	// BaseImages
	CreateBaseImage(ctx context.Context, organizationID string, baseImage *v1.BaseImage) (*v1.BaseImage, error)
	DeleteBaseImage(ctx context.Context, organizationID string, baseImageName string) (*v1.BaseImage, error)
	UpdateBaseImage(ctx context.Context, organizationID string, baseImage *v1.BaseImage) (*v1.BaseImage, error)
	GetBaseImage(ctx context.Context, organizationID string, baseImageName string) (*v1.BaseImage, error)
	ListBaseImages(ctx context.Context, organizationID string) ([]v1.BaseImage, error)
}

ImagesClient defines the image client interface

func NewImagesClient added in v0.1.15

func NewImagesClient(host string, auth runtime.ClientAuthInfoWriter) ImagesClient

NewImagesClient is used to create a new Images client

type SecretsClient added in v0.1.15

type SecretsClient interface {
	CreateSecret(ctx context.Context, organizationID string, secret *v1.Secret) (*v1.Secret, error)
	DeleteSecret(ctx context.Context, organizationID string, secretName string) error
	UpdateSecret(ctx context.Context, organizationID string, secret *v1.Secret) (*v1.Secret, error)
	GetSecret(ctx context.Context, organizationID string, secretName string) (*v1.Secret, error)
	ListSecrets(ctx context.Context, organizationID string) ([]v1.Secret, error)
}

SecretsClient defines the secrets client interface

func NewSecretsClient added in v0.1.15

func NewSecretsClient(host string, auth runtime.ClientAuthInfoWriter) SecretsClient

NewSecretsClient is used to create a new secrets client

type ServicesClient added in v0.1.15

type ServicesClient interface {
	// Service Instances
	CreateServiceInstance(ctx context.Context, serviceInstance *v1.ServiceInstance) (*v1.ServiceInstance, error)
	DeleteServiceInstance(ctx context.Context, serviceInstanceName string) error
	GetServiceInstance(ctx context.Context, serviceInstanceName string) (*v1.ServiceInstance, error)
	ListServiceInstances(ctx context.Context) ([]v1.ServiceInstance, error)

	// Service Classes
	GetServiceClass(ctx context.Context, serviceClassName string) (*v1.ServiceClass, error)
	ListServiceClasses(ctx context.Context) ([]v1.ServiceClass, error)
}

ServicesClient defines the services client interface

type TracingRoundTripper added in v0.1.15

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

TracingRoundTripper injects tracing headers into the request based on the context

func NewTracingRoundTripper added in v0.1.15

func NewTracingRoundTripper(next http.RoundTripper) *TracingRoundTripper

NewTracingRoundTripper returns new instance of RoundTripper

func (*TracingRoundTripper) RoundTrip added in v0.1.15

func (t *TracingRoundTripper) RoundTrip(r *http.Request) (*http.Response, error)

RoundTrip injects tracing payload into HTTP headers if request context contains one

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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