client

package
v1.0.0-alpha.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrpcClient

func GrpcClient(host, password string) (pb.ProviderServiceClient, func() error)

Types

type Client

type Client struct {
	Version string
	pb.ProviderServiceClient
	stdcli.Auth
}

func NewClient

func NewClient(version string) (*Client, func() error)

func (*Client) CreateApp

func (c *Client) CreateApp(name, repo string) (*pb.App, error)

func (*Client) CreateBuild

func (c *Client) CreateBuild(app *pb.App, data []byte, procfile []byte) (*pb.Build, error)

func (*Client) CreateBuildGit

func (c *Client) CreateBuildGit(app *pb.App, version string) (*pb.Build, error)

func (*Client) CreateResource

func (c *Client) CreateResource(kind string, options map[string]string) (*pb.Resource, error)
func (c *Client) CreateResourceLink(app, name string) error

func (*Client) DeleteApp

func (c *Client) DeleteApp(name string) error

func (*Client) DeleteBuild

func (c *Client) DeleteBuild(app, id string) error

func (*Client) DeleteRelease

func (c *Client) DeleteRelease(app, id string) error

func (*Client) DeleteResource

func (c *Client) DeleteResource(name string) error
func (c *Client) DeleteResourceLink(app, name string) error

func (*Client) GetApp

func (c *Client) GetApp(name string) (*pb.App, error)

func (*Client) GetApps

func (c *Client) GetApps() (pb.Apps, error)

func (*Client) GetBuild

func (c *Client) GetBuild(app, id string) (*pb.Build, error)

func (*Client) GetBuilds

func (c *Client) GetBuilds(app string) (pb.Builds, error)

func (*Client) GetEnvironment

func (c *Client) GetEnvironment(name string) (pb.Environment, error)

func (*Client) GetReleases

func (c *Client) GetReleases(app string) (models.Releases, error)

func (*Client) GetResource

func (c *Client) GetResource(name string) (*pb.Resource, error)

func (*Client) IsAWS

func (c *Client) IsAWS() bool

func (*Client) IsGCP

func (c *Client) IsGCP() bool

func (*Client) IsLocal

func (c *Client) IsLocal() bool

func (*Client) ListProcess

func (c *Client) ListProcess(name string) ([]*pb.Process, error)

func (*Client) ListResources

func (c *Client) ListResources() (pb.Resources, error)

func (*Client) ReleaseBuild

func (c *Client) ReleaseBuild(build *models.Build, options models.ReleaseOptions) (*models.Release, error)

func (*Client) RestartApp

func (c *Client) RestartApp(name string) error

func (*Client) RunProcess

func (c *Client) RunProcess(name string, args []string) error

func (*Client) SaveProcess

func (c *Client) SaveProcess(name string, options map[string]string) error

func (*Client) SetEnvironment

func (c *Client) SetEnvironment(name string, data string) error

func (*Client) SetStack

func (c *Client) SetStack(auth *stdcli.Auth)

func (*Client) StreamAppLogs

func (c *Client) StreamAppLogs(name string, follow bool, since time.Duration, proctype string, out io.Writer) error

Jump to

Keyboard shortcuts

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