service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteResourceCommand added in v0.2.0

func ExecuteResourceCommand(r *api.Resource, args []string) (*http.Request, string, error)

Types

type ArrayFlag

type ArrayFlag struct {
	Target   *[]interface{}
	ItemType string
}

func (*ArrayFlag) Set

func (f *ArrayFlag) Set(v string) error

func (*ArrayFlag) String

func (f *ArrayFlag) String() string

func (*ArrayFlag) Type

func (f *ArrayFlag) Type() string

type JSONFlag

type JSONFlag struct {
	Target interface{}
}

func (*JSONFlag) Set

func (f *JSONFlag) Set(v string) error

func (*JSONFlag) String

func (f *JSONFlag) String() string

func (*JSONFlag) Type

func (f *JSONFlag) Type() string

type Result added in v0.2.0

type Result struct {
	Output string
	// StatusCode should be 0 for undefined, or
	// the HTTP status code of the response.
	StatusCode int
}

type ServiceCommand added in v0.2.0

type ServiceCommand struct {
	API     api.API
	Headers map[string]string
	DryRun  bool
	LogHTTP bool
	Client  *http.Client
}

func NewServiceCommand added in v0.2.0

func NewServiceCommand(api *api.API, headers map[string]string, dryRun bool, logHTTP bool) *ServiceCommand

func (*ServiceCommand) Execute added in v0.2.0

func (s *ServiceCommand) Execute(args []string) (*Result, error)

func (*ServiceCommand) PrintHelp added in v0.2.0

func (s *ServiceCommand) PrintHelp() string

Jump to

Keyboard shortcuts

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