frontend

package
v0.3.28 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Get(ctx context.Context, page, limit int) ([]FrontendInfo, error)
	GetByID(ctx context.Context, identifier string) (Frontend, error)
	Create(ctx context.Context, definition Definition) (Frontend, error)
	DeleteByID(ctx context.Context, identifier string) error
}

API contains methods for load balancer frontend management.

func NewAPI

func NewAPI(c client.Client) API

NewAPI creates a new frontend API instance with the given client.

type Definition

type Definition struct {
	Name           string       `json:"name"`
	LoadBalancer   string       `json:"load_balancer"`
	DefaultBackend string       `json:"default_backend"`
	Mode           common.Mode  `json:"mode"`
	State          common.State `json:"state"`
}

type Frontend

type Frontend struct {
	CustomerIdentifier string                         `json:"customer_identifier"`
	ResellerIdentifier string                         `json:"reseller_identifier"`
	Identifier         string                         `json:"identifier"`
	Name               string                         `json:"name"`
	LoadBalancer       *loadbalancer.LoadBalancerInfo `json:"load_balancer,omitempty"`
	DefaultBackend     *backend.BackendInfo           `json:"default_backend,omitempty"`
	Mode               string                         `json:"mode"`
	ClientTimeout      string                         `json:"client_timeout"`
}

Frontend represents a LBaaS Frontend.

type FrontendInfo

type FrontendInfo struct {
	Identifier string `json:"identifier"`
	Name       string `json:"name"`
}

FrontendInfo holds the name and the identifier of a frontend

Jump to

Keyboard shortcuts

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