Documentation ¶
Index ¶
- type Client
- type Projects
- func (p *Projects) AddEnvironmentVariableToProject(projectName string, envVar api.EnvVariable) ([]byte, error)
- func (p *Projects) AddProject(projectName string, jsonPatch string) ([]byte, error)
- func (p *Projects) AddRocketChatNotification(notificationName string, channel string, webhookURL string) ([]byte, error)
- func (p *Projects) AddRocketChatNotificationToProject(projectName string, notificationName string) ([]byte, error)
- func (p *Projects) AddSlackNotification(notificationName string, channel string, webhookURL string) ([]byte, error)
- func (p *Projects) AddSlackNotificationToProject(projectName string, notificationName string) ([]byte, error)
- func (p *Projects) DeleteEnvironmentVariableFromProject(projectName string, envVar api.EnvVariable) ([]byte, error)
- func (p *Projects) DeleteProject(projectName string) ([]byte, error)
- func (p *Projects) DeleteRocketChatNotification(notificationName string) ([]byte, error)
- func (p *Projects) DeleteRocketChatNotificationFromProject(projectName string, notificationName string) ([]byte, error)
- func (p *Projects) DeleteSlackNotification(notificationName string) ([]byte, error)
- func (p *Projects) DeleteSlackNotificationFromProject(projectName string, notificationName string) ([]byte, error)
- func (p *Projects) GetProjectInfo(projectName string) ([]byte, error)
- func (p *Projects) GetProjectKey(projectName string, revealValue bool) ([]byte, error)
- func (p *Projects) ListAllProjects() ([]byte, error)
- func (p *Projects) ListAllRocketChats() ([]byte, error)
- func (p *Projects) ListAllSlacks() ([]byte, error)
- func (p *Projects) ListEnvironmentsForProject(projectName string) ([]byte, error)
- func (p *Projects) ListProjectRocketChats(projectName string) ([]byte, error)
- func (p *Projects) ListProjectSlacks(projectName string) ([]byte, error)
- func (p *Projects) ListProjectVariables(projectName string, revealValue bool) ([]byte, error)
- func (p *Projects) UpdateProject(projectName string, jsonPatch string) ([]byte, error)
- func (p *Projects) UpdateRocketChatNotification(notificationName string, jsonPatch string) ([]byte, error)
- func (p *Projects) UpdateSlackNotification(notificationName string, jsonPatch string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ListAllProjects() ([]byte, error) ListEnvironmentsForProject(string) ([]byte, error) ListProjectVariables(string, bool) ([]byte, error) GetProjectKey(string, bool) ([]byte, error) GetProjectInfo(string) ([]byte, error) ListAllRocketChats() ([]byte, error) ListProjectRocketChats(string) ([]byte, error) ListAllSlacks() ([]byte, error) ListProjectSlacks(string) ([]byte, error) AddRocketChatNotification(string, string, string) ([]byte, error) AddRocketChatNotificationToProject(string, string) ([]byte, error) DeleteRocketChatNotificationFromProject(string, string) ([]byte, error) UpdateRocketChatNotification(string, string) ([]byte, error) DeleteRocketChatNotification(string) ([]byte, error) AddSlackNotification(string, string, string) ([]byte, error) AddSlackNotificationToProject(string, string) ([]byte, error) DeleteSlackNotificationFromProject(string, string) ([]byte, error) UpdateSlackNotification(string, string) ([]byte, error) DeleteSlackNotification(string) ([]byte, error) DeleteProject(string) ([]byte, error) AddProject(string, string) ([]byte, error) UpdateProject(string, string) ([]byte, error) AddEnvironmentVariableToProject(string, api.EnvVariable) ([]byte, error) DeleteEnvironmentVariableFromProject(string, api.EnvVariable) ([]byte, error) }
Client .
type Projects ¶
type Projects struct {
// contains filtered or unexported fields
}
Projects .
func (*Projects) AddEnvironmentVariableToProject ¶
func (p *Projects) AddEnvironmentVariableToProject(projectName string, envVar api.EnvVariable) ([]byte, error)
AddEnvironmentVariableToProject will list all environments for a project
func (*Projects) AddProject ¶
AddProject .
func (*Projects) AddRocketChatNotification ¶
func (p *Projects) AddRocketChatNotification(notificationName string, channel string, webhookURL string) ([]byte, error)
AddRocketChatNotification will add a rocketchat notification to lagoon to be used by a project
func (*Projects) AddRocketChatNotificationToProject ¶
func (p *Projects) AddRocketChatNotificationToProject(projectName string, notificationName string) ([]byte, error)
AddRocketChatNotificationToProject will add a rocketchat notification to a project
func (*Projects) AddSlackNotification ¶
func (p *Projects) AddSlackNotification(notificationName string, channel string, webhookURL string) ([]byte, error)
AddSlackNotification will add a slack notification to lagoon to be used by a project
func (*Projects) AddSlackNotificationToProject ¶
func (p *Projects) AddSlackNotificationToProject(projectName string, notificationName string) ([]byte, error)
AddSlackNotificationToProject will add a notification to a project
func (*Projects) DeleteEnvironmentVariableFromProject ¶
func (p *Projects) DeleteEnvironmentVariableFromProject(projectName string, envVar api.EnvVariable) ([]byte, error)
DeleteEnvironmentVariableFromProject will list all environments for a project
func (*Projects) DeleteProject ¶
DeleteProject .
func (*Projects) DeleteRocketChatNotification ¶
DeleteRocketChatNotification will delete a rocketchat notification from lagoon
func (*Projects) DeleteRocketChatNotificationFromProject ¶
func (p *Projects) DeleteRocketChatNotificationFromProject(projectName string, notificationName string) ([]byte, error)
DeleteRocketChatNotificationFromProject will delete a rocketchat notification from a project
func (*Projects) DeleteSlackNotification ¶
DeleteSlackNotification will delete a slack notification from lagoon
func (*Projects) DeleteSlackNotificationFromProject ¶
func (p *Projects) DeleteSlackNotificationFromProject(projectName string, notificationName string) ([]byte, error)
DeleteSlackNotificationFromProject will delete a slack notification from a project
func (*Projects) GetProjectInfo ¶
GetProjectInfo will get basic info about a project
func (*Projects) GetProjectKey ¶
GetProjectKey will get basic info about a project
func (*Projects) ListAllProjects ¶
ListAllProjects will list all projects
func (*Projects) ListAllRocketChats ¶
ListAllRocketChats will list all rocketchat notifications on all projects
func (*Projects) ListAllSlacks ¶
ListAllSlacks will list all slack notifications on all projects
func (*Projects) ListEnvironmentsForProject ¶
ListEnvironmentsForProject will list all environments for a project
func (*Projects) ListProjectRocketChats ¶
ListProjectRocketChats will list all rocketchat notifications for a project
func (*Projects) ListProjectSlacks ¶
ListProjectSlacks will list all slack notifications for a project
func (*Projects) ListProjectVariables ¶
ListProjectVariables will list the environment variables for a project and all environments attached
func (*Projects) UpdateProject ¶
UpdateProject .