Documentation ¶
Index ¶
- func AddVerbCommands(parentCmd *cobra.Command, serviceName string, groupID string) error
- func BuildVerbResourceMap(serviceName string) (map[string][]string, error)
- func CustomParentHelpFunc(cmd *cobra.Command, args []string)
- func CustomVerbHelpFunc(cmd *cobra.Command, args []string)
- func FetchApiResourcesCmd(serviceName string) *cobra.Command
- func FetchService(serviceName string, verb string, resourceName string, options *FetchOptions) (map[string]interface{}, error)
- func ListAPIResources(serviceName string) error
- func PrintAvailableVerbs(cmd *cobra.Command)
- type Config
- type Environment
- type FetchOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddVerbCommands ¶
AddVerbCommands adds subcommands for each verb to the parent command
func BuildVerbResourceMap ¶
BuildVerbResourceMap builds a mapping from verbs to resources for a given service
func CustomParentHelpFunc ¶
CustomParentHelpFunc customizes the help output for the parent command
func CustomVerbHelpFunc ¶
CustomVerbHelpFunc customizes the help output for verb commands
func FetchApiResourcesCmd ¶
FetchApiResourcesCmd provides api-resources command for the given service
func FetchService ¶
func FetchService(serviceName string, verb string, resourceName string, options *FetchOptions) (map[string]interface{}, error)
FetchService handles the execution of gRPC commands for all services
func ListAPIResources ¶
func PrintAvailableVerbs ¶
PrintAvailableVerbs prints the available verbs along with both usage patterns
Types ¶
type Config ¶
type Config struct { Environment string `yaml:"environment"` Environments map[string]Environment `yaml:"environments"` }
Config structure to parse environment files
type Environment ¶
Click to show internal directories.
Click to hide internal directories.