cloud

package
v1.6.13-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAltTokenSource added in v0.4.0

func NewAltTokenSource(tokenURL, tokenBody string) oauth2.TokenSource

NewAltTokenSource constructs a new alternate token source for generating tokens.

Types

type AltTokenSource added in v0.4.0

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

AltTokenSource is the structure holding the data for the functionality needed to generates tokens

func (*AltTokenSource) Token added in v0.4.0

func (a *AltTokenSource) Token() (*oauth2.Token, error)

Token returns a token which may be used for authentication

type Cloud

type Cloud struct {
	File    file.Service
	Project string
	Zone    string
}

func NewCloud

func NewCloud(ctx context.Context, version, configPath, primaryFilestoreServiceEndpoint, testFilestoreServiceEndpoint string) (*Cloud, error)

func NewFakeCloud

func NewFakeCloud() (*Cloud, error)

func NewFakeCloudWithFiler added in v1.2.0

func NewFakeCloudWithFiler(filer file.Service, project, location string) (*Cloud, error)

type ConfigFile added in v0.4.0

type ConfigFile struct {
	Global ConfigGlobal `gcfg:"global"`
}

type ConfigGlobal added in v0.4.0

type ConfigGlobal struct {
	TokenURL  string `gcfg:"token-url"`
	TokenBody string `gcfg:"token-body"`
	ProjectId string `gcfg:"project-id"`
	Zone      string `gcfg:"zone"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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