boskos

package
v0.0.0-...-75da391 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GKEProjectResource is resource type defined for GKE projects
	GKEProjectResource = "gke-project"
)

Variables

This section is empty.

Functions

func AcquireGKEProject

func AcquireGKEProject(host *string) (*boskoscommon.Resource, error)

AcquireGKEProject acquires GKE Boskos Project with "free" state, and not owned by anyone, sets its state to "busy" and assign it an owner of *host, which by default is env var `JOB_NAME`.

func ReleaseGKEProject

func ReleaseGKEProject(host *string, name string) error

ReleaseGKEProject releases project, the host must match with the host name that acquired the project, which by default is env var `JOB_NAME`. The state is set to "dirty" for Janitor picking up. This function is very powerful, it can release Boskos resource acquired by other processes, regardless of where the other process is running.

Types

This section is empty.

Jump to

Keyboard shortcuts

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