Documentation
¶
Index ¶
- func LoadCredentials() (string, error)
- func SaveCredentials(token string) error
- type Server
- type ServerClient
- func (s *ServerClient) App(app string) (*stoolapi.Application, error)
- func (s *ServerClient) Apps() ([]*stoolapi.Application, error)
- func (s *ServerClient) AuthenticateViaOauth() (string, error)
- func (s *ServerClient) Branch(app, branch string) (*stoolapi.Branch, error)
- func (s *ServerClient) CheckAuthorized() (bool, error)
- func (s *ServerClient) CompleteLogin(code, state string) (string, error)
- func (s *ServerClient) CreateApplication(name, title string) (string, error)
- func (s *ServerClient) CreateBranch(app, branch string) error
- func (s *ServerClient) DeleteBranch(app, branch string) error
- func (s *ServerClient) DownloadBuild(app, branch, build string) (*domain.ApplicationManifest, string, error)
- func (s *ServerClient) DownloadPrivateBuild(app, branch, build string) (*domain.ApplicationManifest, string, error)
- func (s *ServerClient) GetAppInfo(app string) (*stoolapi.Application, error)
- func (s *ServerClient) GetLiveBuild(appID, branch string) (string, error)
- func (s *ServerClient) Login(redirect string) (string, error)
- func (s *ServerClient) Logout() error
- func (s *ServerClient) PromoteBranch(app, from, to string) error
- func (s *ServerClient) PublishBuild(app, branch, build string) (*stoolapi.Branch, error)
- func (s *ServerClient) PushBuild(app, branch string, path string, manifestFile string) (*stoolapi.Build, error)
- func (s *ServerClient) UpdateBuild(app, branch, build string, path string, p domain.Platform, l domain.Locale) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCredentials ¶
func SaveCredentials ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(client *ServerClient) *Server
type ServerClient ¶
type ServerClient struct {
// contains filtered or unexported fields
}
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) 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) UpdateBuild ¶
Click to show internal directories.
Click to hide internal directories.