bind

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 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) ([]BindInfo, error)
	GetByID(ctx context.Context, identifier string) (Bind, error)
	Create(ctx context.Context, definition Definition) (Bind, error)
	Update(ctx context.Context, identifier string, definition Definition) (Bind, error)
	DeleteByID(ctx context.Context, identifier string) error
}

API contains methods for frontend bind management.

func NewAPI

func NewAPI(c client.Client) API

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

type Bind

type Bind = v1.Bind

type BindInfo

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

BindInfo holds the identifier and the name of a load balancer frontend bind.

type BindPage

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

func (BindPage) Content

func (f BindPage) Content() interface{}

func (BindPage) Num

func (f BindPage) Num() int

func (BindPage) Options

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

func (BindPage) Size

func (f BindPage) Size() int

func (BindPage) Total

func (f BindPage) Total() int

type Definition

type Definition struct {
	Name     string       `json:"name"`
	State    common.State `json:"state"`
	Frontend string       `json:"frontend"`
}

Jump to

Keyboard shortcuts

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