project

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteProject

func DeleteProject(projectID int) error

DeleteProject deletes a project.

Types

type OverrideValue

type OverrideValue struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

OverrideValue is struct to parse or export json.

type Project

type Project struct {
	ID                int              `json:"id"`
	UserID            int              `json:"user_id"`
	Title             string           `json:"title"`
	BaseURL           string           `json:"base_url"`
	RepositoryOwner   string           `json:"repository_owner"`
	RepositoryName    string           `json:"repository_name"`
	HelmRepositoryURL string           `json:"helm_repository_url"`
	HelmDirectoryName string           `json:"helm_directory_name"`
	Namespace         string           `json:"namespace"`
	ValueOptions      []*OverrideValue `json:"values"`
}

Project is struct to parse or export json.

func CreateProject

func CreateProject(userID int, title, baseURL, owner, name, helmRepositoryURL, helmDirectory, namespace string, valueOptions []*OverrideValue) (*Project, error)

CreateProject creates a project.

func GetProjectByID

func GetProjectByID(id int) (*Project, error)

GetProjectByID gets a project from specified ID.

func GetProjects

func GetProjects() ([]*Project, error)

GetProjects gets all projects.

func UpdateProject

func UpdateProject(projectID int, baseURL, helmDirectory, namespace string, valueOptions []*OverrideValue) (*Project, error)

UpdateProject updates a project.

Jump to

Keyboard shortcuts

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