btpcli

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthError

type AuthError struct {
	CLI     string
	Message string
}

func (*AuthError) Error

func (e *AuthError) Error() string

type Client

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

func NewClient

func NewClient(run Runner, configPath string) *Client

func (*Client) RoleCollections

func (c *Client) RoleCollections(ctx context.Context) ([]RoleCollection, error)

func (*Client) ServiceInstances

func (c *Client) ServiceInstances(ctx context.Context) ([]ServiceInstance, error)

func (*Client) Subaccounts

func (c *Client) Subaccounts(ctx context.Context) ([]Subaccount, error)

func (*Client) Target

func (c *Client) Target(ctx context.Context) (TargetInfo, error)

type NotInstalledError

type NotInstalledError struct {
	CLI     string
	Message string
}

func (*NotInstalledError) Error

func (e *NotInstalledError) Error() string

type RoleCollection

type RoleCollection struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	RoleCount   int    `json:"role_count"`
}

type Runner

type Runner func(command string) (string, error)

type ServiceInstance

type ServiceInstance struct {
	Name    string `json:"name"`
	Service string `json:"service"`
	Plan    string `json:"plan"`
	Status  string `json:"status"`
	Created string `json:"created"`
}

type Subaccount

type Subaccount struct {
	GUID      string `json:"guid"`
	Name      string `json:"name"`
	Subdomain string `json:"subdomain"`
	Region    string `json:"region"`
	State     string `json:"state"`
	Parent    string `json:"parent"`
}

type TargetInfo

type TargetInfo struct {
	Subaccount    string `json:"subaccount"`
	GlobalAccount string `json:"global_account"`
	Region        string `json:"region"`
	Trial         bool   `json:"trial"`
	LoggedIn      bool   `json:"logged_in"`
}

Jump to

Keyboard shortcuts

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