Documentation ¶
Index ¶
- type Client
- func (c *Client) Check()
- func (c *Client) Connect() error
- func (c *Client) CreateApplication(id, name string) (*pb.ApplicationResponse, error)
- func (c *Client) CreateDownload(versionId int, req *pb.Download) (*pb.DownloadResponse, error)
- func (c *Client) CreateVersion(version, name, appId string) (*pb.VersionResponse, error)
- func (c *Client) DeleteVersion(versionId int) (*pb.VersionResponse, error)
- func (c *Client) GetApplication(id string) (*pb.ApplicationResponse, error)
- func (c *Client) GetDownload(id int) (*pb.DownloadResponse, error)
- func (c *Client) GetDownloadFile(id int) (*pb.Download, error)
- func (c *Client) GetVersion(versionId int) (*pb.VersionResponse, error)
- func (c *Client) Info() (*pb.ServiceInfoResponse, error)
- func (c *Client) UpdateVersion(versionId int, version, name, appId string, stable bool) (*pb.VersionResponse, error)
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 (*Client) CreateApplication ¶
func (c *Client) CreateApplication(id, name string) (*pb.ApplicationResponse, error)
func (*Client) CreateDownload ¶
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) GetVersion ¶
func (c *Client) GetVersion(versionId int) (*pb.VersionResponse, error)
func (*Client) UpdateVersion ¶
Click to show internal directories.
Click to hide internal directories.