frontend

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	pagination.Pageable
	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)
	Update(ctx context.Context, identifier string, 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 = v1.Frontend

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

type FrontendPage

type FrontendPage struct {
	Page       int            `json:"page"`
	TotalItems int            `json:"total_items"`
	TotalPages int            `json:"total_pages"`
	Limit      int            `json:"limit"`
	Data       []FrontendInfo `json:"data"`
	// contains filtered or unexported fields
}

func (FrontendPage) Content

func (f FrontendPage) Content() interface{}

func (FrontendPage) Num

func (f FrontendPage) Num() int

func (FrontendPage) Options

func (f FrontendPage) Options() []param.Parameter

func (FrontendPage) Size

func (f FrontendPage) Size() int

func (FrontendPage) Total

func (f FrontendPage) Total() int

Jump to

Keyboard shortcuts

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