cfcli

package
v0.0.14 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 App

type App struct {
	Name      string `json:"name"`
	State     string `json:"state"`
	Instances string `json:"instances"`
	Routes    string `json:"routes"`
}

type AppEnv

type AppEnv struct {
	SystemProvided any `json:"system_provided,omitempty"`
	UserProvided   any `json:"user_provided,omitempty"`
	Running        any `json:"running_env,omitempty"`
	Staging        any `json:"staging_env,omitempty"`
}

type AuthError

type AuthError struct {
	CLI     string
	Message string
}

func (*AuthError) Error

func (e *AuthError) Error() string

type Buildpack

type Buildpack struct {
	Name     string `json:"name"`
	Position string `json:"position"`
	Enabled  string `json:"enabled"`
	Locked   string `json:"locked"`
	Filename string `json:"filename"`
}

type Client

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

func NewClient

func NewClient(run Runner, configPath string) *Client

func (*Client) Apps

func (c *Client) Apps(ctx context.Context) ([]App, error)

func (*Client) Buildpacks

func (c *Client) Buildpacks(ctx context.Context) ([]Buildpack, error)

func (*Client) Domains

func (c *Client) Domains(ctx context.Context) ([]Domain, error)

func (*Client) Env

func (c *Client) Env(ctx context.Context, appName string) (AppEnv, error)

func (*Client) Routes

func (c *Client) Routes(ctx context.Context) ([]Route, error)

func (*Client) Services

func (c *Client) Services(ctx context.Context) ([]Service, error)

func (*Client) Target

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

type Domain

type Domain struct {
	Name   string `json:"name"`
	Type   string `json:"type"`
	Status string `json:"status"`
}

type NotInstalledError

type NotInstalledError struct {
	CLI     string
	Message string
}

func (*NotInstalledError) Error

func (e *NotInstalledError) Error() string

type Route

type Route struct {
	Domain string `json:"domain"`
	Host   string `json:"host"`
	Path   string `json:"path"`
	Apps   string `json:"apps"`
}

type Runner

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

type Service

type Service struct {
	Name      string `json:"name"`
	Service   string `json:"service"`
	Plan      string `json:"plan"`
	BoundApps string `json:"bound_apps"`
	Status    string `json:"status"`
}

type TargetInfo

type TargetInfo struct {
	Org      string `json:"org"`
	Space    string `json:"space"`
	API      string `json:"api"`
	Region   string `json:"region"`
	LoggedIn bool   `json:"logged_in"`
}

Jump to

Keyboard shortcuts

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