projects

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BGPConfigFlags added in v0.18.0

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

BGPConfigFlags holds the flags for the BGPConfig command

type BGPSessionsCommandArgs added in v0.18.0

type BGPSessionsCommandArgs struct {
	ProjectID string
}

type BgpConfig added in v0.18.0

type BgpConfig struct {
	ProjectID      string
	UseCase        string
	MD5            string
	DeploymentType string
	ASN            int
}

BgpConfig holds the configuration for the BGP enable command

type Client

type Client struct {
	Servicer         Servicer
	ProjectService   metal.ProjectsApiService
	BGPConfigService metal.BGPApiService

	Out outputs.Outputer
}

func NewClient

func NewClient(s Servicer, out outputs.Outputer) *Client

func (*Client) BGPConfig added in v0.8.0

func (c *Client) BGPConfig() *cobra.Command

func (*Client) BGPEnable added in v0.8.0

func (c *Client) BGPEnable() *cobra.Command

func (*Client) BGPSessions added in v0.8.0

func (c *Client) BGPSessions() *cobra.Command

func (*Client) Create

func (c *Client) Create() *cobra.Command

func (*Client) Delete

func (c *Client) Delete() *cobra.Command

func (*Client) NewCommand

func (c *Client) NewCommand() *cobra.Command

func (*Client) Retrieve

func (c *Client) Retrieve() *cobra.Command

func (*Client) Update

func (c *Client) Update() *cobra.Command

type Servicer

type Servicer interface {
	MetalAPI(*cobra.Command) *metal.APIClient
	Format() outputs.Format
	Includes(defaultIncludes []string) (incl []string)
	Excludes(defaultExcludes []string) (excl []string)
	Filters() map[string]string
}

Jump to

Keyboard shortcuts

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