options

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GCPAuth = "GOOGLE_APPLICATION_CREDENTIALS"
)

Variables

This section is empty.

Functions

func ToContext

func ToContext(ctx context.Context, opts *Options) context.Context

Types

type Options

type Options struct {
	ProjectID               string
	ClusterLocation         string
	NodeLocation            string
	ClusterName             string
	VMMemoryOverheadPercent float64
	// GCPAuth is the path to the Google Application Credentials JSON file.
	// https://cloud.google.com/docs/authentication/application-default-credentials
	GCPAuth                string
	NodePoolServiceAccount string
	Interruption           bool
}

func FromContext

func FromContext(ctx context.Context) *Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *coreoptions.FlagSet)

func (*Options) Parse

func (o *Options) Parse(fs *coreoptions.FlagSet, args ...string) error

func (*Options) ToContext

func (o *Options) ToContext(ctx context.Context) context.Context

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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