client

package
v0.0.0-...-8559ee1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Conn     *grpc.ClientConn
	CertPool *x509.CertPool
	// contains filtered or unexported fields
}

func NewClient

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

func (*Client) Check

func (c *Client) Check()

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) CreateApplication

func (c *Client) CreateApplication(id, name string) (*pb.ApplicationResponse, error)

func (*Client) CreateDownload

func (c *Client) CreateDownload(versionId int, req *pb.Download) (*pb.DownloadResponse, error)

func (*Client) CreateVersion

func (c *Client) CreateVersion(version, name, appId string) (*pb.VersionResponse, error)

func (*Client) DeleteVersion

func (c *Client) DeleteVersion(versionId int) (*pb.VersionResponse, error)

func (*Client) GetApplication

func (c *Client) GetApplication(id string) (*pb.ApplicationResponse, error)

func (*Client) GetDownload

func (c *Client) GetDownload(id int) (*pb.DownloadResponse, error)

func (*Client) GetDownloadFile

func (c *Client) GetDownloadFile(id int) (*pb.Download, error)

func (*Client) GetVersion

func (c *Client) GetVersion(versionId int) (*pb.VersionResponse, error)

func (*Client) Info

func (c *Client) Info() (*pb.ServiceInfoResponse, error)

func (*Client) UpdateVersion

func (c *Client) UpdateVersion(versionId int, version, name, appId string, stable bool) (*pb.VersionResponse, error)

Jump to

Keyboard shortcuts

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