project

package
v0.1.33826 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateProjectInfo added in v0.1.31792

type CreateProjectInfo struct {
	Id      string
	Name    string
	Slug    string
	OrgName string
}

type ProjectClient

type ProjectClient interface {
	ProjectInfo(vcs, org, project string) (*ProjectInfo, error)
	ListAllEnvironmentVariables(vcs, org, project string) ([]*ProjectEnvironmentVariable, error)
	GetEnvironmentVariable(vcs, org, project, envName string) (*ProjectEnvironmentVariable, error)
	CreateEnvironmentVariable(vcs, org, project string, v ProjectEnvironmentVariable) (*ProjectEnvironmentVariable, error)
	CreateProject(vcs, org, project string) (*CreateProjectInfo, error)
}

ProjectClient is the interface to interact with project and it's components.

type ProjectEnvironmentVariable

type ProjectEnvironmentVariable struct {
	Name  string
	Value string
}

ProjectEnvironmentVariable is a Environment Variable of a Project

type ProjectInfo added in v0.1.24705

type ProjectInfo struct {
	Id string
}

ProjectInfo is the info of a Project

type ProjectRestClient added in v0.1.33826

type ProjectRestClient struct {
	// contains filtered or unexported fields
}

func NewProjectRestClient

func NewProjectRestClient(config settings.Config) (*ProjectRestClient, error)

NewProjectRestClient returns a new ProjectRestClient satisfying the api.ProjectInterface interface via the REST API.

func (*ProjectRestClient) CreateEnvironmentVariable added in v0.1.33826

func (c *ProjectRestClient) CreateEnvironmentVariable(vcs string, org string, project string, v ProjectEnvironmentVariable) (*ProjectEnvironmentVariable, error)

CreateEnvironmentVariable creates a variable on the given project. This returns the variable if successfully created.

func (*ProjectRestClient) CreateProject added in v0.1.33826

func (c *ProjectRestClient) CreateProject(vcs string, org string, name string) (*CreateProjectInfo, error)

func (*ProjectRestClient) GetEnvironmentVariable added in v0.1.33826

func (c *ProjectRestClient) GetEnvironmentVariable(vcs string, org string, project string, envName string) (*ProjectEnvironmentVariable, error)

GetEnvironmentVariable retrieves and returns a variable with the given name. If the response status code is 404, nil is returned.

func (*ProjectRestClient) ListAllEnvironmentVariables added in v0.1.33826

func (p *ProjectRestClient) ListAllEnvironmentVariables(vcs, org, project string) ([]*ProjectEnvironmentVariable, error)

ListAllEnvironmentVariables returns all of the environment variables owned by the given project. Note that pagination is not supported - we get all pages of env vars and return them all.

func (*ProjectRestClient) ProjectInfo added in v0.1.33826

func (c *ProjectRestClient) ProjectInfo(vcs string, org string, project string) (*ProjectInfo, error)

ProjectInfo retrieves and returns the project info.

Jump to

Keyboard shortcuts

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