httpclient

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(url, token string) error

func GetJSON

func GetJSON(url, token string, value interface{}) error

func PostJSON

func PostJSON(url, token string, in interface{}, out interface{}) error

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI(endpoint, version, resource string) *API

func (*API) URL

func (api *API) URL() string

type HttpError

type HttpError struct {
	Message string `json:"message"`
}

type OrchestratorAPI

type OrchestratorAPI struct {
	*API
}

func NewOrchestratorAPI

func NewOrchestratorAPI(endpoint string) *OrchestratorAPI

func (*OrchestratorAPI) Entities

func (api *OrchestratorAPI) Entities(namespace string) string

func (*OrchestratorAPI) EntityMonitoringController

func (api *OrchestratorAPI) EntityMonitoringController(namespace, entity string) string

func (*OrchestratorAPI) EntityTargetController

func (api *OrchestratorAPI) EntityTargetController(namespace, entity string) string

func (*OrchestratorAPI) GroupStatus

func (api *OrchestratorAPI) GroupStatus(namespace, entity, group string) string

func (*OrchestratorAPI) Namespaces

func (api *OrchestratorAPI) Namespaces() string

func (*OrchestratorAPI) Orchestrate

func (api *OrchestratorAPI) Orchestrate(namespace, entity string) string

func (*OrchestratorAPI) RolloutInfo

func (api *OrchestratorAPI) RolloutInfo(namespace, entity string) string

func (*OrchestratorAPI) RolloutOptions

func (api *OrchestratorAPI) RolloutOptions(namespace, entity string) string

func (*OrchestratorAPI) Status

func (api *OrchestratorAPI) Status(namespace, entity string) string

func (*OrchestratorAPI) TargetVersion

func (api *OrchestratorAPI) TargetVersion(namespace, entity string) string

func (*OrchestratorAPI) Targets

func (api *OrchestratorAPI) Targets(namespace, entity string) string

Jump to

Keyboard shortcuts

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