cli

package
v0.0.0-...-a2be96e Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCredentials

func LoadCredentials() (string, error)

func SaveCredentials

func SaveCredentials(token string) error

Types

type Server

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

func NewServer

func NewServer(client *ServerClient) *Server

func (*Server) Serve

func (s *Server) Serve(l net.Listener) error

func (*Server) Wait

func (s *Server) Wait() (string, error)

type ServerClient

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

func Connect

func Connect(addr string, version string) (*ServerClient, error)

func (*ServerClient) App

func (s *ServerClient) App(app string) (*stoolapi.Application, error)

func (*ServerClient) Apps

func (s *ServerClient) Apps() ([]*stoolapi.Application, error)

func (*ServerClient) AuthenticateViaOauth

func (s *ServerClient) AuthenticateViaOauth() (string, error)

func (*ServerClient) Branch

func (s *ServerClient) Branch(app, branch string) (*stoolapi.Branch, error)

func (*ServerClient) CheckAuthorized

func (s *ServerClient) CheckAuthorized() (bool, error)

func (*ServerClient) CompleteLogin

func (s *ServerClient) CompleteLogin(code, state string) (string, error)

func (*ServerClient) CreateApplication

func (s *ServerClient) CreateApplication(name, title string) (string, error)

func (*ServerClient) CreateBranch

func (s *ServerClient) CreateBranch(app, branch string) error

func (*ServerClient) DeleteBranch

func (s *ServerClient) DeleteBranch(app, branch string) error

func (*ServerClient) DownloadBuild

func (s *ServerClient) DownloadBuild(app, branch, build string) (*domain.ApplicationManifest, string, error)

func (*ServerClient) DownloadPrivateBuild

func (s *ServerClient) DownloadPrivateBuild(app, branch, build string) (*domain.ApplicationManifest, string, error)

func (*ServerClient) GetAppInfo

func (s *ServerClient) GetAppInfo(app string) (*stoolapi.Application, error)

func (*ServerClient) GetLiveBuild

func (s *ServerClient) GetLiveBuild(appID, branch string) (string, error)

func (*ServerClient) Login

func (s *ServerClient) Login(redirect string) (string, error)

func (*ServerClient) Logout

func (s *ServerClient) Logout() error

func (*ServerClient) PromoteBranch

func (s *ServerClient) PromoteBranch(app, from, to string) error

func (*ServerClient) PublishBuild

func (s *ServerClient) PublishBuild(app, branch, build string) (*stoolapi.Branch, error)

func (*ServerClient) PushBuild

func (s *ServerClient) PushBuild(app, branch string, path string, manifestFile string) (*stoolapi.Build, error)

func (*ServerClient) UpdateBuild

func (s *ServerClient) UpdateBuild(app, branch, build string, path string, p domain.Platform, l domain.Locale) error

Jump to

Keyboard shortcuts

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