projects

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 .

func New

func New(lc *lagoon.Config, debug bool) (Client, error)

New .

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

func (p *Projects) AddProject(projectName string, jsonPatch string) ([]byte, error)

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

func (p *Projects) DeleteProject(projectName string) ([]byte, error)

DeleteProject .

func (*Projects) DeleteRocketChatNotification

func (p *Projects) DeleteRocketChatNotification(notificationName string) ([]byte, error)

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

func (p *Projects) DeleteSlackNotification(notificationName string) ([]byte, error)

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

func (p *Projects) GetProjectInfo(projectName string) ([]byte, error)

GetProjectInfo will get basic info about a project

func (*Projects) GetProjectKey

func (p *Projects) GetProjectKey(projectName string, revealValue bool) ([]byte, error)

GetProjectKey will get basic info about a project

func (*Projects) ListAllProjects

func (p *Projects) ListAllProjects() ([]byte, error)

ListAllProjects will list all projects

func (*Projects) ListAllRocketChats

func (p *Projects) ListAllRocketChats() ([]byte, error)

ListAllRocketChats will list all rocketchat notifications on all projects

func (*Projects) ListAllSlacks

func (p *Projects) ListAllSlacks() ([]byte, error)

ListAllSlacks will list all slack notifications on all projects

func (*Projects) ListEnvironmentsForProject

func (p *Projects) ListEnvironmentsForProject(projectName string) ([]byte, error)

ListEnvironmentsForProject will list all environments for a project

func (*Projects) ListProjectRocketChats

func (p *Projects) ListProjectRocketChats(projectName string) ([]byte, error)

ListProjectRocketChats will list all rocketchat notifications for a project

func (*Projects) ListProjectSlacks

func (p *Projects) ListProjectSlacks(projectName string) ([]byte, error)

ListProjectSlacks will list all slack notifications for a project

func (*Projects) ListProjectVariables

func (p *Projects) ListProjectVariables(projectName string, revealValue bool) ([]byte, error)

ListProjectVariables will list the environment variables for a project and all environments attached

func (*Projects) UpdateProject

func (p *Projects) UpdateProject(projectName string, jsonPatch string) ([]byte, error)

UpdateProject .

func (*Projects) UpdateRocketChatNotification

func (p *Projects) UpdateRocketChatNotification(notificationName string, jsonPatch string) ([]byte, error)

UpdateRocketChatNotification will update an existing notification

func (*Projects) UpdateSlackNotification

func (p *Projects) UpdateSlackNotification(notificationName string, jsonPatch string) ([]byte, error)

UpdateSlackNotification will update an existing notification

Jump to

Keyboard shortcuts

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