Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationService ¶
type ApplicationService interface {
CreateApp(app *domain.Application) (domain.Application, error)
GetAppByID(id string) (domain.Application, error)
GetAllApps() ([]domain.Application, error)
DeleteApp(app domain.Application) error
}
func NewAppService ¶
func NewAppService() ApplicationService
type AuthService ¶
type AuthService interface {
InitiateLogin() (*domain.LoginCredentials, error)
CompleteLogin(credentials *domain.LoginCredentials) (*domain.AccessToken, error)
PollForToken(credentials *domain.LoginCredentials) (*domain.AccessToken, error)
SaveToken(token *domain.AccessToken) error
Whoami() (*domain.UserInfo, error)
Logout() error
}
func NewAuthService ¶
func NewAuthService() AuthService
type EnvTypeService ¶
type EnvTypeService interface {
GetEnvTypeByID(id string) (domain.EnvType, error)
GetEnvTypeByAppID(appID string) ([]domain.EnvType, error)
}
func NewEnvTypeService ¶
func NewEnvTypeService() EnvTypeService
type RedactorService ¶
func NewRedactorService ¶
func NewRedactorService(redactText []string) RedactorService
type SyncService ¶
type SyncService interface {
ReadConfigData() (domain.SyncConfig, error)
SyncConfigExist() error
ReadLocalEnv() (map[string]string, error)
ReadRemoteEnv() ([]*domain.EnvironmentVariable, error)
CalculateEnvDiff(local map[string]string, remote map[string]string) *domain.EnvironmentSync
WriteLocalEnv(env map[string]string) error
WriteRemoteEnv(env *domain.EnvironmentSync) error
}
func NewSyncService ¶
func NewSyncService() SyncService
Click to show internal directories.
Click to hide internal directories.