Documentation
¶
Overview ¶
Package site contains settings related to the fleet console project as a whole.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAuthOptions = chromeinfra.SetDefaultAuthOptions(auth.Options{ Scopes: []string{auth.OAuthScopeEmail}, })
DefaultAuthOptions is an auth.Options struct prefilled with chrome-infra defaults.
Functions ¶
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) Init ¶
func (c *Subcommand) Init()
func (*Subcommand) ModifyContext ¶
func (c *Subcommand) ModifyContext(ctx context.Context) context.Context
Click to show internal directories.
Click to hide internal directories.