Versions in this module Expand all Collapse all v0 v0.2.0 Nov 1, 2025 Changes in this version + func ExecuteResourceCommand(r *api.Resource, args []string) (*http.Request, string, error) + type Result struct + Output string + StatusCode int + type ServiceCommand struct + API api.API + Client *http.Client + DryRun bool + Headers map[string]string + LogHTTP bool + func NewServiceCommand(api *api.API, headers map[string]string, dryRun bool, logHTTP bool) *ServiceCommand + func (s *ServiceCommand) Execute(args []string) (*Result, error) + func (s *ServiceCommand) PrintHelp() string v0.1.0 Nov 2, 2024 Changes in this version + type ArrayFlag struct + ItemType string + Target *[]interface{} + func (f *ArrayFlag) Set(v string) error + func (f *ArrayFlag) String() string + func (f *ArrayFlag) Type() string + type CreateMethod struct + SupportsUserSettableCreate bool + type DeleteMethod struct + type GetMethod struct + type JSONFlag struct + Target interface{} + func (f *JSONFlag) Set(v string) error + func (f *JSONFlag) String() string + func (f *JSONFlag) Type() string + type ListMethod struct + type PatternInfo struct + IsResourcePattern bool + type Resource struct + CreateMethod *CreateMethod + DeleteMethod *DeleteMethod + GetMethod *GetMethod + ListMethod *ListMethod + Parents []*Resource + Pattern []string + Plural string + Schema *openapi.Schema + Singular string + UpdateMethod *UpdateMethod + func (r *Resource) ExecuteCommand(args []string) (*http.Request, error, string) + type Service struct + Client *http.Client + Headers map[string]string + func NewService(serviceDefinition ServiceDefinition, headers map[string]string) *Service + func (s *Service) ExecuteCommand(args []string) (string, error) + func (s *Service) PrintHelp() string + type ServiceDefinition struct + Resources map[string]*Resource + ServerURL string + func GetServiceDefinition(api *openapi.OpenAPI, serverURL, pathPrefix string) (*ServiceDefinition, error) + func (s *ServiceDefinition) GetResource(resource string) (*Resource, error) + type UpdateMethod struct