projects

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 8 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)
	ListProjectVariables(string, bool) ([]byte, error)
	GetProjectKey(string, bool) ([]byte, error)
	GetProjectInfo(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) 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) 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) 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 .

Jump to

Keyboard shortcuts

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