cli

package
v0.0.0-...-f4b31ea Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2023 The ChromiumOS Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Copyright 2023 The ChromiumOS Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

View Source
var (
	Context = context.Background()
)

Functions

func AuthenticatedHTTPClient

func AuthenticatedHTTPClient() (*http.Client, error)

Return an authenticated HTTP client. Must be called after Init.

func AuthenticatedTokenSource

func AuthenticatedTokenSource() (oauth2.TokenSource, error)

Return an authenticated TokenSource. Must be called after Init.

func Init

func Init()

Set up common CLI flags, etc. Calls flag.Parse.

func MustMarshalOutput

func MustMarshalOutput(v interface{})

Marshal given data to output or die.

func MustUnmarshalInput

func MustUnmarshalInput(v interface{})

Unmarshal input into the given type or die.

func SetAuthScopes

func SetAuthScopes(scopes ...string)

Set the auth scopes. Must be called before Init.

Types

This section is empty.

Jump to

Keyboard shortcuts

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