site

package
v0.0.0-...-7220889 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package site contains settings related to the fleet console project as a whole.

Index

Constants

This section is empty.

Variables

DefaultAuthOptions is an auth.Options struct prefilled with chrome-infra defaults.

Functions

func NewAuthenticatedClient

func NewAuthenticatedClient(ctx context.Context, rpcAuthorityKind auth.RPCAuthorityKind, baseURL string, port int, insecure bool) (*prpc.Client, error)

NewAuthenticatedClient creates a new fleet console pRPC client.

Types

type CommonFlags

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

CommonFlags are the flags common to all commands.

func (*CommonFlags) HTTP

func (fl *CommonFlags) HTTP() bool

HTTP returns whether to use HTTP or HTTPS (default).

func (*CommonFlags) Host

func (fl *CommonFlags) Host() (string, error)

Host returns the host to contact.

func (*CommonFlags) Local

func (fl *CommonFlags) Local() bool

Local returns whether we are talking to local

func (*CommonFlags) Prod

func (fl *CommonFlags) Prod() bool

Prod returns whether we are talking to prod or not.

func (*CommonFlags) Register

func (fl *CommonFlags) Register(f *flag.FlagSet)

Register the common flags.

func (*CommonFlags) UIHost

func (fl *CommonFlags) UIHost() (string, error)

UIHost returns the UI host to contact for a given environment.

type Subcommand

type Subcommand struct {
	subcommands.CommandRunBase

	LogConfig   logging.Config
	CommonFlags CommonFlags
	AuthFlags   authcli.Flags
}

func (*Subcommand) Done

func (c *Subcommand) Done(ctx context.Context, err error) int

func (*Subcommand) Init

func (c *Subcommand) Init()

func (*Subcommand) ModifyContext

func (c *Subcommand) ModifyContext(ctx context.Context) context.Context

Jump to

Keyboard shortcuts

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