Help us shape the future of Go! Take the 2026 Go Developer Survey

otc

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(cfg *config.Config) *Client

func (*Client) CreateTemporaryCredentials

func (c *Client) CreateTemporaryCredentials(projectToken string, durationSeconds int) (*Credentials, error)

func (*Client) GetDomainScopedToken

func (c *Client) GetDomainScopedToken(unscopedToken string) (string, error)

func (*Client) GetProjectScopedToken

func (c *Client) GetProjectScopedToken(unscopedToken, projectID string) (string, error)

func (*Client) GetProjects

func (c *Client) GetProjects(unscopedToken string) ([]Project, error)

func (*Client) GetUnscopedToken

func (c *Client) GetUnscopedToken(idToken string, statusSetter ValidationStatusSetter) (string, error)

func (*Client) ListProjects

func (c *Client) ListProjects(domainToken string) ([]Project, error)

type Credentials

type Credentials struct {
	Access        string `json:"access"`
	Secret        string `json:"secret"`
	SecurityToken string `json:"securitytoken"`
	ExpiresAt     string `json:"expires_at"`
}

func (*Credentials) SaveShellScript

func (c *Credentials) SaveShellScript(filename, region string) error

type Project

type Project struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type ValidationStatusSetter

type ValidationStatusSetter interface {
	SetValidationStatus(status, message string)
}

ValidationStatusSetter is an interface for setting validation status

Jump to

Keyboard shortcuts

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