project

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create added in v0.0.4

func Create(client *occlient.Client, projectName string) error

func Exists added in v0.0.4

func Exists(client *occlient.Client, projectName string) (bool, error)

Checks whether a project with the given name exists or not projectName is the project name to perform check for The first returned parameter is a bool indicating if a project with the given name already exists or not The second returned parameter is the error that might occurs while execution

func GetCurrent

func GetCurrent(client *occlient.Client) string

func SetCurrent

func SetCurrent(client *occlient.Client, project string) error

Types

type ProjectInfo added in v0.0.4

type ProjectInfo struct {
	// Name of the project
	Name string
	// is this project active?
	Active bool
}

ApplicationInfo holds information about one project

func List added in v0.0.4

func List(client *occlient.Client) ([]ProjectInfo, error)

Jump to

Keyboard shortcuts

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