client

package
v1.0.0-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2019 License: Apache-2.0 Imports: 25 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(c *cli.Context) (*Client, func() error)

func (*Client) AppDomainUpdate

func (c *Client) AppDomainUpdate(name, domain string) 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) CreateBuildBare

func (c *Client) CreateBuildBare(app *pb.App, version, tag string, procfile []byte) (*pb.Build, error)

func (*Client) CreateBuildDocker

func (c *Client) CreateBuildDocker(app *pb.App, ref string, images []string, in io.ReadCloser, procfile []byte) (*pb.Build, error)

func (*Client) CreateBuildGit

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

func (*Client) CreateCertificate

func (c *Client) CreateCertificate(app, domain, cert, key string) 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) DeleteCertificate

func (c *Client) DeleteCertificate(app, domain 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, limit int) (pb.Builds, error)

func (*Client) GetDockerCreds

func (c *Client) GetDockerCreds() (*pb.DockerCred, 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) ProxyRemote

func (c *Client) ProxyRemote(host string, port int, conn io.ReadWriteCloser) 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, opts pb.ProcessRunOptions) 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) Stream

func (c *Client) Stream(path string, headers map[string]string, in io.ReadCloser, out io.Writer) error

func (*Client) StreamAppLogs

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

func (*Client) StreamClient

func (c *Client) StreamClient(path string, headers map[string]string) (*websocket.Conn, error)

func (*Client) UpdateProcessLimits

func (c *Client) UpdateProcessLimits(name, resource string, limits map[string]string) error

Jump to

Keyboard shortcuts

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