Documentation
¶
Index ¶
- Constants
- func DownloadEnvironmentKubeConfig(kubeConfigPath, environmentID string) error
- func FormatCommandData(cmd *cobra.Command, data interface{}) error
- func FormatCommandError(cmd *cobra.Command, err error) error
- func FormatRequestResult(cmd *cobra.Command, data interface{}, resp *http.Response, err error) error
- func GetAPI() *sdk.APIClient
- func GetAPIFromProfile(profile config.Profile) *sdk.APIClient
- func GetComponent(componentID string) (*bunnysdk.ComponentItem, *http.Response, error)
- func GetComponentResources(componentID string) ([]bunnysdk.ComponentResourceItem, *http.Response, error)
- func GetComponents(environment, operationStatus string) (*bunnysdk.PaginatedComponentCollection, *http.Response, error)
- func GetContext() (context.Context, context.CancelFunc)
- func GetContextFromProfile(profile config.Profile) (context.Context, context.CancelFunc)
- func GetEnvironment(environmentID string) (*bunnysdk.EnvironmentItem, *http.Response, error)
- func GetEnvironments(projectID string) (*bunnysdk.PaginatedEnvironmentCollection, *http.Response, error)
- func GetOrganization(organizationID string) (*bunnysdk.OrganizationItem, *http.Response, error)
- func GetOrganizations() (*bunnysdk.PaginatedOrganizationCollection, *http.Response, error)
- func GetProfile() config.Profile
- func GetProject(projectID string) (*bunnysdk.ProjectItem, *http.Response, error)
- func GetProjects(organization string) (*bunnysdk.PaginatedProjectCollection, *http.Response, error)
- func ProcessPagination(cmd *cobra.Command, m ModelWithPagination) (int32, error)
- func ShowCollection(cmd *cobra.Command, page int32, generator CollectionGenerator) error
- type CollectionGenerator
- type ModelWithPagination
Constants ¶
View Source
const ( PaginationQuit = -1 PaginationOther = -2 ShowOtherMinPages = 4 )
Variables ¶
This section is empty.
Functions ¶
func DownloadEnvironmentKubeConfig ¶ added in v0.8.2
func FormatCommandData ¶
func FormatRequestResult ¶
func GetAPIFromProfile ¶ added in v0.10.0
func GetComponent ¶ added in v0.7.0
func GetComponentResources ¶ added in v0.7.0
func GetComponents ¶ added in v0.7.0
func GetContext ¶
func GetContext() (context.Context, context.CancelFunc)
func GetContextFromProfile ¶
func GetEnvironment ¶ added in v0.7.0
func GetEnvironments ¶ added in v0.7.0
func GetOrganization ¶ added in v0.7.0
func GetOrganizations ¶ added in v0.7.0
func GetOrganizations() (*bunnysdk.PaginatedOrganizationCollection, *http.Response, error)
func GetProfile ¶
func GetProject ¶ added in v0.7.0
func GetProjects ¶ added in v0.7.0
func ProcessPagination ¶ added in v0.9.0
func ProcessPagination(cmd *cobra.Command, m ModelWithPagination) (int32, error)
func ShowCollection ¶ added in v0.9.0
func ShowCollection(cmd *cobra.Command, page int32, generator CollectionGenerator) error
Types ¶
type CollectionGenerator ¶ added in v0.9.0
type CollectionGenerator func(page int32) (ModelWithPagination, *http.Response, error)
type ModelWithPagination ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.