api

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiDiscovery added in v0.1.8

func ApiDiscovery(w http.ResponseWriter, r *http.Request)

func AuthenticateRequest added in v0.1.8

func AuthenticateRequest(r *http.Request, w http.ResponseWriter) error

func ContentDeliveryNetworkCreateV1

func ContentDeliveryNetworkCreateV1(w http.ResponseWriter, r *http.Request)

func ContentDeliveryNetworkDeleteV1

func ContentDeliveryNetworkDeleteV1(w http.ResponseWriter, r *http.Request)

func ContentDeliveryNetworkGetV1

func ContentDeliveryNetworkGetV1(w http.ResponseWriter, r *http.Request)

func ContentDeliveryNetworkUpdateV1

func ContentDeliveryNetworkUpdateV1(w http.ResponseWriter, r *http.Request)

func GetVersion

func GetVersion(w http.ResponseWriter, r *http.Request)

func Index added in v0.1.8

func Index(w http.ResponseWriter, r *http.Request)

func LBCreateV1 added in v0.3.0

func LBCreateV1(w http.ResponseWriter, r *http.Request)

func LBDeleteV1 added in v0.3.0

func LBDeleteV1(w http.ResponseWriter, r *http.Request)

func LBGetV1 added in v0.3.0

func LBGetV1(w http.ResponseWriter, r *http.Request)

func LBUpdateV1 added in v0.3.0

func LBUpdateV1(w http.ResponseWriter, r *http.Request)

func Logger

func Logger(inner http.Handler, name string) http.Handler

func NewRouter

func NewRouter() *mux.Router

func UpdateLBV1 added in v0.3.0

func UpdateLBV1(lb *Lbv1, id string, name string, backends []string, simulateFailure bool, timeToProcess int32, newStatus status)

Types

type ContentDeliveryNetworkV1 added in v0.3.1

type ContentDeliveryNetworkV1 struct {
	Id string `json:"id,omitempty"`

	Label string `json:"label"`

	Ips []string `json:"ips"`

	Hostnames []string `json:"hostnames"`

	ExampleInt int32 `json:"exampleInt,omitempty"`

	ExampleNumber float32 `json:"exampleNumber,omitempty"`

	ExampleBoolean bool `json:"example_boolean,omitempty"`

	ObjectProperty *ObjectProperty `json:"object_property"`

	Computed string `json:"computed"`

	ComputedWithDefault string `json:"computed_with_default"`

	OptionalComputed string `json:"optional_computed"`

	OptionalComputedWithDefault string `json:"optional_computed_with_default"`

	OptionalProperty string `json:"optional_property"`

	ObjectNestedSchemeProperty *ContentDeliveryNetworkV1ObjectNestedSchemeProperty `json:"object_nested_scheme_property,omitempty"`

	ArrayOfObjectsExample []ContentDeliveryNetworkV1ArrayOfObjectsExample `json:"arrayOfObjectsExample"`
}

type ContentDeliveryNetworkV1ArrayOfObjectsExample added in v0.6.0

type ContentDeliveryNetworkV1ArrayOfObjectsExample struct {
	Protocol string `json:"protocol"`

	OriginPort int32 `json:"originPort"`
}

type ContentDeliveryNetworkV1ObjectNestedSchemeProperty added in v0.3.1

type ContentDeliveryNetworkV1ObjectNestedSchemeProperty struct {
	Name string `json:"name,omitempty"`

	ObjectProperty *ContentDeliveryNetworkV1ObjectNestedSchemePropertyObjectProperty `json:"object_property"`
}

type ContentDeliveryNetworkV1ObjectNestedSchemePropertyObjectProperty added in v0.16.0

type ContentDeliveryNetworkV1ObjectNestedSchemePropertyObjectProperty struct {
	Account string `json:"account,omitempty"`
}

type Lbv1 added in v0.3.0

type Lbv1 struct {
	Id string `json:"id,omitempty"`

	Name string `json:"name"`

	Backends []string `json:"backends"`

	TimeToProcess int32 `json:"timeToProcess"`

	SimulateFailure bool `json:"simulate_failure"`

	// lb resource status
	Status string `json:"status,omitempty"` // @deprecated

	NewStatus *Status `json:"newStatus,omitempty"`
}

type ObjectProperty added in v0.3.1

type ObjectProperty struct {
	Message string `json:"message"`

	DetailedMessage string `json:"detailedMessage"`

	ExampleInt int32 `json:"exampleInt"`

	ExampleNumber float32 `json:"exampleNumber"`

	ExampleBoolean bool `json:"example_boolean"`
}

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

type Routes

type Routes []Route

type Status added in v0.3.1

type Status struct {
	Message string `json:"message,omitempty"`

	Status string `json:"status,omitempty"`
}

Jump to

Keyboard shortcuts

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