utils

package
v0.0.0-...-b7cf373 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetEnvProject

func SetEnvProject(project string) error

Types

type ProjectHolder

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

func NewProjectHolder

func NewProjectHolder() (*ProjectHolder, error)

func (*ProjectHolder) AcquireOrDie

func (ph *ProjectHolder) AcquireOrDie(resourceType string) string

AcquireOrDie tries to get a boskso project. If succeeded, it spawns a goroutine to refresh it and returns the name of the project to use. If failed, it will terminate.

func (*ProjectHolder) Release

func (ph *ProjectHolder) Release()

Release stops the refresh goroutine, and releases the boskso project.

Jump to

Keyboard shortcuts

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