Documentation ¶
Index ¶
- type Client
- func (c *Client) API(cmd *cobra.Command) *packngo.Client
- func (c *Client) Config(cmd *cobra.Command) *viper.Viper
- func (c *Client) DefaultConfig(withExtension bool) string
- func (c *Client) Excludes(defaultExcludes []string) (excl []string)
- func (c *Client) Filters() map[string]string
- func (c *Client) Format() outputPkg.Format
- func (c *Client) Includes(defaultIncludes []string) (incl []string)
- func (c *Client) Init(cmd *cobra.Command)
- func (c *Client) ListOptions(defaultIncludes, defaultExcludes []string) *packngo.ListOptions
- func (c *Client) MetalAPI(cmd *cobra.Command) *metal.APIClient
- func (c *Client) NewCommand() *cobra.Command
- func (c *Client) Search() (sea string)
- func (c *Client) SetToken(token string)
- func (c *Client) SortBy() (sBy string)
- func (c *Client) SortDirection() (sDir string)
- func (c *Client) Token() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Version string // contains filtered or unexported fields }
func (*Client) DefaultConfig ¶
func (*Client) ListOptions ¶
func (c *Client) ListOptions(defaultIncludes, defaultExcludes []string) *packngo.ListOptions
ListOptions creates a packngo.ListOptions using the includes and excludes persistent flags. When not defined, the defaults given will be supplied.
func (*Client) NewCommand ¶
func (*Client) SortDirection ¶ added in v0.16.0
Click to show internal directories.
Click to hide internal directories.