Documentation
¶
Index ¶
- type AddBackup
- type AddGroup
- type AddNotificationRocketChat
- type AddNotificationSlack
- type AddNotificationToProject
- type AddOrUpdateEnvironmentStorage
- type AddRestore
- type AddSSHKey
- type AddUpdateEnvironment
- type AddUserToGroup
- type AdvancedTask
- type Backup
- type Client
- type CustomRequest
- type Data
- type DebugData
- type DebugVar
- type DeleteBackup
- type DeleteDeployment
- type DeleteEnvVariable
- type DeleteEnvironment
- type DeleteFilesForTask
- type DeleteGroup
- type DeleteNotificationRocketChat
- type DeleteNotificationSlack
- type DeleteOpenshift
- type DeleteProject
- type DeleteProjectResult
- type DeleteSSHKey
- type DeleteTask
- type DeleteUser
- type DeployEnvironmentBranch
- type DeployEnvironmentLatest
- type DeployEnvironmentPromote
- type DeployEnvironmentPullrequest
- type DeployType
- type Deployment
- type DeploymentEnv
- type DeploymentStatusType
- type EnvOrderType
- type EnvType
- type EnvVariable
- type EnvVariableScope
- type EnvVariableType
- type Environment
- type EnvironmentBackups
- type EnvironmentByName
- type EnvironmentVariable
- type File
- type Group
- type GroupMembership
- type GroupRole
- type Interface
- func (api *Interface) AddBackup(backup AddBackup) ([]byte, error)
- func (api *Interface) AddDeployment(deployment Deployment) ([]byte, error)
- func (api *Interface) AddGroup(group AddGroup) ([]byte, error)
- func (api *Interface) AddGroupToProject(group ProjectToGroup) ([]byte, error)
- func (api *Interface) AddGroupWithParent(group AddGroup) ([]byte, error)
- func (api *Interface) AddOrUpdateEnvironment(environment AddUpdateEnvironment) ([]byte, error)
- func (api *Interface) AddProject(project ProjectPatch, fragment string) ([]byte, error)
- func (api *Interface) AddSSHKey(sshKey AddSSHKey) ([]byte, error)
- func (api *Interface) AddUser(user User) ([]byte, error)
- func (api *Interface) AddUserToGroup(user AddUserToGroup) ([]byte, error)
- func (api *Interface) Debug(debug bool)
- func (api *Interface) DeleteBackup(backup DeleteBackup) ([]byte, error)
- func (api *Interface) DeleteEnvironment(environment DeleteEnvironment) ([]byte, error)
- func (api *Interface) DeleteGroup(group AddGroup) ([]byte, error)
- func (api *Interface) DeleteProject(project Project) ([]byte, error)
- func (api *Interface) DeleteSSHKey(sshKey DeleteSSHKey) ([]byte, error)
- func (api *Interface) DeleteUser(user User) ([]byte, error)
- func (api *Interface) GetActiveSystemForProject(project Project, task string) ([]byte, error)
- func (api *Interface) GetAllEnvironmentBackups() ([]byte, error)
- func (api *Interface) GetAllProjects(fragment string) ([]byte, error)
- func (api *Interface) GetDeploymentByRemoteID(deployment Deployment) ([]byte, error)
- func (api *Interface) GetEnvironmentBackups(backups EnvironmentBackups) ([]byte, error)
- func (api *Interface) GetEnvironmentByName(environment EnvironmentByName, fragment string) ([]byte, error)
- func (api *Interface) GetEnvironmentByOpenshiftProjectName(environment Environment) ([]byte, error)
- func (api *Interface) GetEnvironmentsForProject(project Project) ([]byte, error)
- func (api *Interface) GetOpenShiftInfoForProject(project Project) ([]byte, error)
- func (api *Interface) GetProductionEnvironmentForProject(project Project) ([]byte, error)
- func (api *Interface) GetProjectByName(project Project, fragment string) ([]byte, error)
- func (api *Interface) GetProjectsByGitURL(project Project) ([]byte, error)
- func (api *Interface) GetRocketChatInfoForProject(project Project, fragment string) ([]byte, error)
- func (api *Interface) GetSlackInfoForProject(project Project, fragment string) ([]byte, error)
- func (api *Interface) GetUserBySSHKey(sshKey SSHKeyValue) ([]byte, error)
- func (api *Interface) RemoveGroupFromProject(group ProjectToGroup) ([]byte, error)
- func (api *Interface) RemoveUserFromGroup(user UserGroup) ([]byte, error)
- func (api *Interface) Request(request CustomRequest) ([]byte, error)
- func (api *Interface) RunQuery(graphQLQuery *graphql.Request, returnType interface{}) (interface{}, error)
- func (api *Interface) SanitizeGroupName(name string) string
- func (api *Interface) SanitizeProjectName(name string) string
- func (api *Interface) SetEnvironmentServices(environment SetEnvironmentServices) ([]byte, error)
- func (api *Interface) UpdateDeployment(deployment UpdateDeployment) ([]byte, error)
- func (api *Interface) UpdateEnvironment(environment UpdateEnvironment) ([]byte, error)
- func (api *Interface) UpdateGroup(group UpdateGroup) ([]byte, error)
- func (api *Interface) UpdateProject(project UpdateProject, fragment string) ([]byte, error)
- func (api *Interface) UpdateRestore(update UpdateRestore) ([]byte, error)
- func (api *Interface) UpdateTask(task UpdateTask) ([]byte, error)
- func (api *Interface) UpdateUser(user UpdateUser) ([]byte, error)
- type NotificationRocketChat
- type NotificationSlack
- type NotificationType
- type Openshift
- type Project
- type ProjectGroups
- type ProjectOrderType
- type ProjectPatch
- type ProjectToGroup
- type Projects
- type RemoveNotificationFromProject
- type Restore
- type RestoreStatusType
- type RocketChats
- type SSHKey
- type SSHKeyType
- type SSHKeyValue
- type SetEnvironmentServices
- type Slacks
- type Task
- type TaskStatusType
- type UnassignedNotification
- type UpdateDeployment
- type UpdateEnvironment
- type UpdateGroup
- type UpdateNotificationRocketChatInput
- type UpdateNotificationRocketChatPatch
- type UpdateNotificationSlack
- type UpdateNotificationSlackPatch
- type UpdateOpenshift
- type UpdateProject
- type UpdateRestore
- type UpdateRestorePatch
- type UpdateSSHKey
- type UpdateSSHKeyPatch
- type UpdateTask
- type UpdateUser
- type UploadFilesForTask
- type User
- type UserGroup
- type UserGroupRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddBackup ¶
type AddBackup struct {
ID int `json:"id,omitempty"`
Environment string `json:"environment"`
Source string `json:"source"`
BackupID string `json:"backupId"`
Created string `json:"created"`
}
AddBackup struct.
type AddNotificationRocketChat ¶
type AddNotificationRocketChat struct {
Name string `json:"name"`
Webhook string `json:"webhook"`
Channel string `json:"channel"`
}
AddNotificationRocketChat struct.
type AddNotificationSlack ¶
type AddNotificationSlack struct {
Name string `json:"name"`
Webhook string `json:"webhook"`
Channel string `json:"channel"`
}
AddNotificationSlack struct.
type AddNotificationToProject ¶
type AddNotificationToProject struct {
Project string `json:"project"`
NotificationType NotificationType `json:"notificationType"`
NotificationName string `json:"notificationName"`
}
AddNotificationToProject struct.
type AddOrUpdateEnvironmentStorage ¶
type AddOrUpdateEnvironmentStorage struct {
Environment int `json:"environment"`
PersistentStorageClaim string `json:"persistentStorageClaim"`
BytesUsed int `json:"bytesUsed"`
}
AddOrUpdateEnvironmentStorage struct.
type AddRestore ¶
type AddRestore struct {
ID int `json:"id,omitempty"`
Status RestoreStatusType `json:"status"`
RestoreLocation string `json:"restoreLocation"`
Created string `json:"created"`
Execute bool `json:"execute"`
BackupID string `json:"backupId,omitempty"`
}
AddRestore struct.
type AddSSHKey ¶
type AddSSHKey struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
KeyValue string `json:"keyValue"`
KeyType SSHKeyType `json:"keyType"`
User User `json:"user"`
}
AddSSHKey .
type AddUpdateEnvironment ¶
type AddUpdateEnvironment struct {
Name string `json:"name"`
Patch Environment `json:"patch"`
}
AddUpdateEnvironment struct.
type AddUserToGroup ¶
type AddUserToGroup struct {
User User `json:"user"`
Group string `json:"group"`
Role GroupRole `json:"role"`
}
AddUserToGroup struct.
type AdvancedTask ¶
type AdvancedTask struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description"`
}
AdvancedTask task def struct
type Backup ¶
type Backup struct {
ID int `json:"id,omitempty"`
Source string `json:"source,omitempty"`
BackupID string `json:"backupId,omitempty"`
Created string `json:"created,omitempty"`
Deleted string `json:"deleted,omitempty"`
Environment int `json:"environment,omitempty"`
Restore Restore `json:"restore,omitempty"`
}
Backup struct.
type Client ¶
type Client interface {
// Assorted
RunQuery(*graphql.Request, interface{}) (interface{}, error)
Request(CustomRequest) ([]byte, error)
SanitizeGroupName(string) string
SanitizeProjectName(string) string
Debug(bool)
// Users
AddUser(User) ([]byte, error)
UpdateUser(UpdateUser) ([]byte, error)
DeleteUser(User) ([]byte, error)
GetUserBySSHKey(SSHKeyValue) ([]byte, error)
AddSSHKey(AddSSHKey) ([]byte, error)
DeleteSSHKey(DeleteSSHKey) ([]byte, error)
// Tasks
UpdateTask(UpdateTask) ([]byte, error)
// Backups
AddBackup(AddBackup) ([]byte, error)
DeleteBackup(DeleteBackup) ([]byte, error)
UpdateRestore(UpdateRestore) ([]byte, error)
GetAllEnvironmentBackups() ([]byte, error)
GetEnvironmentBackups(EnvironmentBackups) ([]byte, error)
// Groups
AddGroup(AddGroup) ([]byte, error)
AddGroupWithParent(AddGroup) ([]byte, error)
UpdateGroup(UpdateGroup) ([]byte, error)
DeleteGroup(AddGroup) ([]byte, error)
AddUserToGroup(AddUserToGroup) ([]byte, error)
AddGroupToProject(ProjectToGroup) ([]byte, error)
RemoveGroupFromProject(ProjectToGroup) ([]byte, error)
RemoveUserFromGroup(UserGroup) ([]byte, error)
// Environments
GetEnvironmentByName(EnvironmentByName, string) ([]byte, error)
AddOrUpdateEnvironment(AddUpdateEnvironment) ([]byte, error)
UpdateEnvironment(UpdateEnvironment) ([]byte, error)
DeleteEnvironment(DeleteEnvironment) ([]byte, error)
SetEnvironmentServices(SetEnvironmentServices) ([]byte, error)
// Projects
GetOpenShiftInfoForProject(Project) ([]byte, error)
AddProject(ProjectPatch, string) ([]byte, error)
UpdateProject(UpdateProject, string) ([]byte, error)
DeleteProject(Project) ([]byte, error)
GetProductionEnvironmentForProject(Project) ([]byte, error)
GetEnvironmentByOpenshiftProjectName(Environment) ([]byte, error)
GetProjectsByGitURL(Project) ([]byte, error)
GetProjectByName(Project, string) ([]byte, error)
GetAllProjects(string) ([]byte, error)
GetRocketChatInfoForProject(Project, string) ([]byte, error)
GetSlackInfoForProject(Project, string) ([]byte, error)
GetActiveSystemForProject(Project, string) ([]byte, error)
GetEnvironmentsForProject(Project) ([]byte, error)
GetDeploymentByRemoteID(Deployment) ([]byte, error)
AddDeployment(Deployment) ([]byte, error)
UpdateDeployment(UpdateDeployment) ([]byte, error)
}
Client struct
type CustomRequest ¶
CustomRequest .
type DebugVar ¶
type DebugVar struct {
Name string `json:"name"`
Value interface{} `json:"value"`
}
DebugVar .
type DeleteBackup ¶
type DeleteBackup struct {
BackupID string `json:"backupId"`
}
DeleteBackup struct.
type DeleteDeployment ¶
type DeleteDeployment struct {
ID int `json:"id"`
}
DeleteDeployment struct.
type DeleteEnvVariable ¶
type DeleteEnvVariable struct {
ID int `json:"id"`
}
DeleteEnvVariable struct.
type DeleteEnvironment ¶
type DeleteEnvironment struct {
Name string `json:"name"`
Project string `json:"project"`
Execute bool `json:"execute"`
}
DeleteEnvironment struct.
type DeleteFilesForTask ¶
type DeleteFilesForTask struct {
ID int `json:"id"`
}
DeleteFilesForTask struct.
type DeleteNotificationRocketChat ¶
type DeleteNotificationRocketChat struct {
Name string `json:"name"`
}
DeleteNotificationRocketChat struct.
type DeleteNotificationSlack ¶
type DeleteNotificationSlack struct {
Name string `json:"name"`
}
DeleteNotificationSlack struct.
type DeleteOpenshift ¶
type DeleteOpenshift struct {
Name string `json:"name"`
}
DeleteOpenshift struct.
type DeleteProject ¶
type DeleteProject struct {
Project string `json:"project"`
}
DeleteProject struct.
type DeleteProjectResult ¶
type DeleteProjectResult struct {
DeleteProject string `json:"deleteProject"`
}
DeleteProjectResult struct.
type DeployEnvironmentBranch ¶
type DeployEnvironmentBranch struct {
Project Project `json:"project"`
BranchName string `json:"branchName"`
BranchRef string `json:"branchRef,omitempty"`
}
DeployEnvironmentBranch struct.
type DeployEnvironmentLatest ¶
type DeployEnvironmentLatest struct {
Environment Environment `json:"environment"`
}
DeployEnvironmentLatest struct.
type DeployEnvironmentPromote ¶
type DeployEnvironmentPromote struct {
SourceEnvironment Environment `json:"sourceEnvironment"`
Project Project `json:"project"`
DestinationEnvironment string `json:"destinationEnvironment"`
}
DeployEnvironmentPromote struct.
type DeployEnvironmentPullrequest ¶
type DeployEnvironmentPullrequest struct {
Project Project `json:"project"`
Number int `json:"number"`
Title string `json:"title"`
BaseBranchName string `json:"baseBranchName"`
BaseBranchRef string `json:"baseBranchRef"`
HeadBranchName string `json:"headBranchName"`
HeadBranchRef string `json:"headBranchRef"`
}
DeployEnvironmentPullrequest struct.
type DeployType ¶
type DeployType string
DeployType .
const ( Branch DeployType = "BRANCH" PullRequest DeployType = "PULLREQUEST" Promote DeployType = "PROMOTE" )
. .
type Deployment ¶
type Deployment struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Status DeploymentStatusType `json:"status,omitempty"`
Created string `json:"created,omitempty"`
Started string `json:"started,omitempty"`
Completed string `json:"completed,omitempty"`
Environment int `json:"environment,omitempty"`
RemoteID string `json:"remoteId,omitempty"`
BuildLog string `json:"buildLog,omitempty"`
}
Deployment struct.
type DeploymentEnv ¶
type DeploymentEnv struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Status DeploymentStatusType `json:"status,omitempty"`
Created string `json:"created,omitempty"`
Started string `json:"started,omitempty"`
Completed string `json:"completed,omitempty"`
Environment Environment `json:"environment,omitempty"`
RemoteID string `json:"remoteId,omitempty"`
BuildLog string `json:"buildLog,omitempty"`
}
DeploymentEnv struct.
type DeploymentStatusType ¶
type DeploymentStatusType string
DeploymentStatusType .
const ( NewDeploy DeploymentStatusType = "NEW" PendingDeploy DeploymentStatusType = "PENDING" RunningDeploy DeploymentStatusType = "RUNNING" CancelledDeploy DeploymentStatusType = "CANCELLED" ErrorDeploy DeploymentStatusType = "ERROR" FailedDeploy DeploymentStatusType = "FAILED" CompleteDeploy DeploymentStatusType = "COMPLETE" )
. .
type EnvOrderType ¶
type EnvOrderType string
EnvOrderType .
const ( NameEnvOrder EnvOrderType = "NAME" UpdatedEnvOrder EnvOrderType = "UPDATED" )
. .
type EnvVariable ¶
type EnvVariable struct {
ID int `json:"id,omitempty"`
Type EnvVariableType `json:"type,omitempty"`
TypeID int `json:"typeId"`
Name string `json:"name"`
Scope EnvVariableScope `json:"scope"`
Value string `json:"value"`
}
EnvVariable struct.
type EnvVariableScope ¶
type EnvVariableScope string
EnvVariableScope .
const ( BuildVar EnvVariableScope = "BUILD" RuntimeVar EnvVariableScope = "RUNTIME" GlobalVar EnvVariableScope = "GLOBAL" InternalContainerRegistryVar EnvVariableScope = "INTERNAL_CONTAINER_REGISTRY" ContainerRegistryVar EnvVariableScope = "CONTAINER_REGISTRY" )
. .
type EnvVariableType ¶
type EnvVariableType string
EnvVariableType .
const ( ProjectVar EnvVariableType = "PROJECT" EnvironmentVar EnvVariableType = "ENVIRONMENT" )
. .
type Environment ¶
type Environment struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
DeployType DeployType `json:"deployType,omitempty"`
DeployTitle string `json:"deployTitle,omitempty"`
DeployBaseRef string `json:"deployBaseRef,omitempty"`
DeployHeadRef string `json:"deployHeadRef,omitempty"`
AutoIdle *int `json:"autoIdle,omitempty"`
EnvironmentType EnvType `json:"environmentType,omitempty"`
OpenshiftProjectName string `json:"openshiftProjectName,omitempty"`
Created string `json:"created,omitempty"`
Deleted string `json:"deleted,omitempty"`
Route string `json:"route,omitempty"`
Routes string `json:"routes,omitempty"`
MonitoringUrls string `json:"monitoringUrls,omitempty"`
EnvVariables []EnvironmentVariable `json:"envVariables,omitempty"`
Backups []Backup `json:"backups,omitempty"`
Tasks []Task `json:"tasks,omitempty"`
Project int `json:"project,omitempty"`
AdvancedTasks []AdvancedTask `json:"advancedTasks"`
}
Environment struct.
type EnvironmentBackups ¶
type EnvironmentBackups struct {
OpenshiftProjectName string `json:"openshiftProjectName"`
}
EnvironmentBackups struct.
type EnvironmentByName ¶
EnvironmentByName struct.
type EnvironmentVariable ¶
type EnvironmentVariable struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Scope string `json:"scope,omitempty"`
Value string `json:"value,omitempty"`
}
EnvironmentVariable struct.
type File ¶
type File struct {
ID int `json:"id,omitempty"`
Filename string `json:"filename,omitempty"`
Download string `json:"download,omitempty"`
Created string `json:"created,omitempty"`
}
File .
type Group ¶
type Group struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Groups []Group `json:"groups,omitempty"`
Members string `json:"members,omitempty"`
}
Group struct.
type GroupMembership ¶
GroupMembership .
type Interface ¶
type Interface struct {
// contains filtered or unexported fields
}
Interface struct
func (*Interface) AddDeployment ¶
func (api *Interface) AddDeployment(deployment Deployment) ([]byte, error)
AddDeployment .
func (*Interface) AddGroupToProject ¶
func (api *Interface) AddGroupToProject(group ProjectToGroup) ([]byte, error)
AddGroupToProject .
func (*Interface) AddGroupWithParent ¶
AddGroupWithParent .
func (*Interface) AddOrUpdateEnvironment ¶
func (api *Interface) AddOrUpdateEnvironment(environment AddUpdateEnvironment) ([]byte, error)
AddOrUpdateEnvironment .
func (*Interface) AddProject ¶
func (api *Interface) AddProject(project ProjectPatch, fragment string) ([]byte, error)
AddProject .
func (*Interface) AddUserToGroup ¶
func (api *Interface) AddUserToGroup(user AddUserToGroup) ([]byte, error)
AddUserToGroup .
func (*Interface) DeleteBackup ¶
func (api *Interface) DeleteBackup(backup DeleteBackup) ([]byte, error)
DeleteBackup .
func (*Interface) DeleteEnvironment ¶
func (api *Interface) DeleteEnvironment(environment DeleteEnvironment) ([]byte, error)
DeleteEnvironment .
func (*Interface) DeleteGroup ¶
DeleteGroup .
func (*Interface) DeleteProject ¶
DeleteProject .
func (*Interface) DeleteSSHKey ¶
func (api *Interface) DeleteSSHKey(sshKey DeleteSSHKey) ([]byte, error)
DeleteSSHKey .
func (*Interface) DeleteUser ¶
DeleteUser .
func (*Interface) GetActiveSystemForProject ¶
GetActiveSystemForProject . @TODO
func (*Interface) GetAllEnvironmentBackups ¶
GetAllEnvironmentBackups .
func (*Interface) GetAllProjects ¶
GetAllProjects .
func (*Interface) GetDeploymentByRemoteID ¶
func (api *Interface) GetDeploymentByRemoteID(deployment Deployment) ([]byte, error)
GetDeploymentByRemoteID .
func (*Interface) GetEnvironmentBackups ¶
func (api *Interface) GetEnvironmentBackups(backups EnvironmentBackups) ([]byte, error)
GetEnvironmentBackups .
func (*Interface) GetEnvironmentByName ¶
func (api *Interface) GetEnvironmentByName(environment EnvironmentByName, fragment string) ([]byte, error)
GetEnvironmentByName .
func (*Interface) GetEnvironmentByOpenshiftProjectName ¶
func (api *Interface) GetEnvironmentByOpenshiftProjectName(environment Environment) ([]byte, error)
GetEnvironmentByOpenshiftProjectName .
func (*Interface) GetEnvironmentsForProject ¶
GetEnvironmentsForProject .
func (*Interface) GetOpenShiftInfoForProject ¶
GetOpenShiftInfoForProject .
func (*Interface) GetProductionEnvironmentForProject ¶
GetProductionEnvironmentForProject .
func (*Interface) GetProjectByName ¶
GetProjectByName .
func (*Interface) GetProjectsByGitURL ¶
GetProjectsByGitURL .
func (*Interface) GetRocketChatInfoForProject ¶
GetRocketChatInfoForProject .
func (*Interface) GetSlackInfoForProject ¶
GetSlackInfoForProject .
func (*Interface) GetUserBySSHKey ¶
func (api *Interface) GetUserBySSHKey(sshKey SSHKeyValue) ([]byte, error)
GetUserBySSHKey .
func (*Interface) RemoveGroupFromProject ¶
func (api *Interface) RemoveGroupFromProject(group ProjectToGroup) ([]byte, error)
RemoveGroupFromProject .
func (*Interface) RemoveUserFromGroup ¶
RemoveUserFromGroup .
func (*Interface) Request ¶
func (api *Interface) Request(request CustomRequest) ([]byte, error)
Request .
func (*Interface) RunQuery ¶
func (api *Interface) RunQuery(graphQLQuery *graphql.Request, returnType interface{}) (interface{}, error)
RunQuery run a graphql query against an api endpoint, return the result
func (*Interface) SanitizeGroupName ¶
SanitizeGroupName .
func (*Interface) SanitizeProjectName ¶
SanitizeProjectName .
func (*Interface) SetEnvironmentServices ¶
func (api *Interface) SetEnvironmentServices(environment SetEnvironmentServices) ([]byte, error)
SetEnvironmentServices .
func (*Interface) UpdateDeployment ¶
func (api *Interface) UpdateDeployment(deployment UpdateDeployment) ([]byte, error)
UpdateDeployment .
func (*Interface) UpdateEnvironment ¶
func (api *Interface) UpdateEnvironment(environment UpdateEnvironment) ([]byte, error)
UpdateEnvironment .
func (*Interface) UpdateGroup ¶
func (api *Interface) UpdateGroup(group UpdateGroup) ([]byte, error)
UpdateGroup .
func (*Interface) UpdateProject ¶
func (api *Interface) UpdateProject(project UpdateProject, fragment string) ([]byte, error)
UpdateProject .
func (*Interface) UpdateRestore ¶
func (api *Interface) UpdateRestore(update UpdateRestore) ([]byte, error)
UpdateRestore .
func (*Interface) UpdateTask ¶
func (api *Interface) UpdateTask(task UpdateTask) ([]byte, error)
UpdateTask .
func (*Interface) UpdateUser ¶
func (api *Interface) UpdateUser(user UpdateUser) ([]byte, error)
UpdateUser .
type NotificationRocketChat ¶
type NotificationRocketChat struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Webhook string `json:"webhook,omitempty"`
Channel string `json:"channel,omitempty"`
}
NotificationRocketChat struct.
type NotificationSlack ¶
type NotificationSlack struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Webhook string `json:"webhook,omitempty"`
Channel string `json:"channel,omitempty"`
}
NotificationSlack struct.
type NotificationType ¶
type NotificationType string
NotificationType .
const ( SlackNotification NotificationType = "SLACK" RocketChatNotification NotificationType = "ROCKETCHAT" EmailNotification NotificationType = "EMAIL" MicrosoftTeamsNotification NotificationType = "MICROSOFTTEAMS" )
. .
type Openshift ¶
type Openshift struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
ConsoleURL string `json:"consoleUrl,omitempty"`
Token string `json:"token,omitempty"`
RouterPattern string `json:"routerPattern,omitempty"`
ProjectUser string `json:"projectUser,omitempty"`
SSHHost string `json:"sshHost,omitempty"`
SSHPort string `json:"sshPort,omitempty"`
Created string `json:"created,omitempty"`
}
Openshift struct.
type Project ¶
type Project struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
GitURL string `json:"gitUrl,omitempty"`
PrivateKey string `json:"privateKey,omitempty"`
Subfolder string `json:"subfolder,omitempty"`
RouterPattern string `json:"routerPattern,omitempty"`
ActiveSystemsTask string `json:"activeSystemsTask,omitempty"`
ActiveSystemsDeploy string `json:"activeSystemsDeploy,omitempty"`
ActiveSystemsRemove string `json:"activeSystemsRemove,omitempty"`
ActiveSystemsPromote string `json:"activeSystemsPromote,omitempty"`
ActiveSystemsMisc string `json:"activeSystemsMisc,omitempty"`
Branches string `json:"branches,omitempty"`
Pullrequests string `json:"pullrequests,omitempty"`
ProductionEnvironment string `json:"productionEnvironment,omitempty"`
StandbyProductionEnvironment string `json:"standbyProductionEnvironment,omitempty"`
AutoIdle *int `json:"autoIdle,omitempty"`
StorageCalc *int `json:"storageCalc,omitempty"`
OpenshiftProjectPattern string `json:"openshiftProjectPattern,omitempty"`
DevelopmentEnvironmentsLimit int `json:"developmentEnvironmentsLimit,omitempty"`
Created string `json:"created,omitempty"`
Openshift Openshift `json:"openshift,omitempty"`
EnvVariables []EnvironmentVariable `json:"envVariables,omitempty"`
Environments []Environment `json:"environments,omitempty"`
Deployments []Deployment `json:"deployments,omitempty"`
Notifications []interface{} `json:"notifications,omitempty"`
}
Project struct.
type ProjectGroups ¶
ProjectGroups struct.
type ProjectOrderType ¶
type ProjectOrderType string
ProjectOrderType .
const ( NameProjectOrder ProjectOrderType = "NAME" CreatedProjectOrder ProjectOrderType = "UPCREATEDDATED" )
. .
type ProjectPatch ¶
type ProjectPatch struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
GitURL string `json:"gitUrl,omitempty"`
PrivateKey string `json:"privateKey,omitempty"`
Subfolder string `json:"subfolder,omitempty"`
RouterPattern string `json:"routerPattern,omitempty"`
ActiveSystemsTask string `json:"activeSystemsTask,omitempty"`
ActiveSystemsDeploy string `json:"activeSystemsDeploy,omitempty"`
ActiveSystemsRemove string `json:"activeSystemsRemove,omitempty"`
ActiveSystemsPromote string `json:"activeSystemsPromote,omitempty"`
ActiveSystemsMisc string `json:"activeSystemsMisc,omitempty"`
Branches string `json:"branches,omitempty"`
Pullrequests string `json:"pullrequests,omitempty"`
ProductionEnvironment string `json:"productionEnvironment,omitempty"`
StandbyProductionEnvironment string `json:"standbyProductionEnvironment,omitempty"`
AutoIdle *int `json:"autoIdle,omitempty"`
StorageCalc *int `json:"storageCalc,omitempty"`
OpenshiftProjectPattern string `json:"openshiftProjectPattern,omitempty"`
DevelopmentEnvironmentsLimit *int `json:"developmentEnvironmentsLimit,omitempty"`
Openshift *int `json:"openshift,omitempty"`
}
ProjectPatch struct.
type ProjectToGroup ¶
ProjectToGroup struct.
type RemoveNotificationFromProject ¶
type RemoveNotificationFromProject struct {
Project string `json:"project"`
NotificationType NotificationType `json:"notificationType"`
NotificationName string `json:"notificationName"`
}
RemoveNotificationFromProject struct.
type Restore ¶
type Restore struct {
ID int `json:"id,omitempty"`
BackupID string `json:"backupId,omitempty"`
Status string `json:"status,omitempty"`
RestoreLocation string `json:"restoreLocation,omitempty"`
Created string `json:"created,omitempty"`
}
Restore struct.
type RestoreStatusType ¶
type RestoreStatusType string
RestoreStatusType .
const ( PendingRestore RestoreStatusType = "PENDING" SuccessfulRestore RestoreStatusType = "SUCCESSFUL" FailedRestore RestoreStatusType = "FAILED" )
Pending .
type RocketChats ¶
type RocketChats struct {
RocketChats []NotificationRocketChat `json:"rocketchats"`
}
RocketChats struct.
type SSHKey ¶
type SSHKey struct {
ID int `json:"id,omitempty"`
Name string `json:"name,omitempty"`
KeyValue string `json:"keyValue,omitempty"`
KeyType SSHKeyType `json:"keyType,omitempty"`
KeyFingerprint string `json:"keyFingerprint,omitempty"`
}
SSHKey .
type SSHKeyType ¶
type SSHKeyType string
SSHKeyType .
const ( SSHRsa SSHKeyType = "SSH_RSA" SSHEd25519 SSHKeyType = "SSH_ED25519" )
. .
type SetEnvironmentServices ¶
type SetEnvironmentServices struct {
Environment int `json:"environment"`
Services []string `json:"services"`
}
SetEnvironmentServices struct.
type Task ¶
type Task struct {
ID int `json:"id"`
Name string `json:"name"`
Status TaskStatusType `json:"status,omitempty"`
Created string `json:"created,omitempty"`
Started string `json:"started,omitempty"`
Completed string `json:"completed,omitempty"`
Environment int `json:"environment"`
Service string `json:"service,omitempty"`
Command string `json:"command,omitempty"`
RemoteID string `json:"remoteId,omitempty"`
Execute bool `json:"execute,omitempty"`
}
Task struct.
type TaskStatusType ¶
type TaskStatusType string
TaskStatusType .
const ( ActiveTask TaskStatusType = "ACTIVE" SucceededTask TaskStatusType = "SUCCEEDED" FailedTask TaskStatusType = "FAILED" )
. .
type UnassignedNotification ¶
type UnassignedNotification struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
}
UnassignedNotification struct.
type UpdateDeployment ¶
type UpdateDeployment struct {
ID int `json:"id"`
Patch Deployment `json:"patch"`
}
UpdateDeployment struct.
type UpdateEnvironment ¶
type UpdateEnvironment struct {
ID int `json:"id"`
Patch Environment `json:"patch"`
}
UpdateEnvironment struct.
type UpdateGroup ¶
UpdateGroup struct.
type UpdateNotificationRocketChatInput ¶
type UpdateNotificationRocketChatInput struct {
ID int `json:"id"`
Patch UpdateNotificationRocketChatPatch `json:"patch"`
}
UpdateNotificationRocketChatInput struct.
type UpdateNotificationRocketChatPatch ¶
type UpdateNotificationRocketChatPatch struct {
Name string `json:"name,omitempty"`
Webhook string `json:"webhook,omitempty"`
Channel string `json:"channel,omitempty"`
}
UpdateNotificationRocketChatPatch struct.
type UpdateNotificationSlack ¶
type UpdateNotificationSlack struct {
ID int `json:"id"`
Patch UpdateNotificationSlackPatch `json:"patch"`
}
UpdateNotificationSlack struct.
type UpdateNotificationSlackPatch ¶
type UpdateNotificationSlackPatch struct {
Name string `json:"name,omitempty"`
Webhook string `json:"webhook,omitempty"`
Channel string `json:"channel,omitempty"`
}
UpdateNotificationSlackPatch struct.
type UpdateOpenshift ¶
UpdateOpenshift struct.
type UpdateProject ¶
type UpdateProject struct {
ID int `json:"id"`
Patch ProjectPatch `json:"patch"`
}
UpdateProject struct.
type UpdateRestore ¶
type UpdateRestore struct {
BackupID string `json:"backupId"`
Patch UpdateRestorePatch `json:"patch"`
}
UpdateRestore struct.
type UpdateRestorePatch ¶
type UpdateRestorePatch struct {
Status string `json:"status,omitempty"`
Created string `json:"created,omitempty"`
RestoreLocation string `json:"restoreLocation,omitempty"`
}
UpdateRestorePatch struct.
type UpdateSSHKey ¶
type UpdateSSHKey struct {
ID int `json:"id"`
Patch UpdateSSHKeyPatch `json:"patch"`
}
UpdateSSHKey struct.
type UpdateSSHKeyPatch ¶
type UpdateSSHKeyPatch struct {
Name string `json:"name,omitempty"`
KeyValue string `json:"keyValue,omitempty"`
KeyType SSHKeyType `json:"keyType,omitempty"`
}
UpdateSSHKeyPatch struct.
type UpdateTask ¶
UpdateTask struct.
type UpdateUser ¶
UpdateUser struct.
type UploadFilesForTask ¶
type UploadFilesForTask struct {
Task int `json:"task"`
}
UploadFilesForTask struct.
type User ¶
type User struct {
ID string `json:"id,omitempty"`
Email string `json:"email,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
Comment string `json:"comment,omitempty"`
GitlabID int `json:"gitlabId,omitempty"`
SSHKeys []SSHKey `json:"sshKeys,omitempty"`
Groups []Group `json:"groups,omitempty"`
}
User struct.
type UserGroupRole ¶
type UserGroupRole struct {
User User `json:"user"`
Group Group `json:"group"`
Role GroupRole `json:"role"`
}
UserGroupRole struct.