bind

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 11 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) ([]BindInfo, error)
	GetByID(ctx context.Context, identifier string) (Bind, error)
	Create(ctx context.Context, 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 struct {
	CustomerIdentifier string                `json:"customer_identifier"`
	ResellerIdentifier string                `json:"reseller_identifier"`
	Identifier         string                `json:"identifier"`
	Name               string                `json:"name"`
	Frontend           frontend.FrontendInfo `json:"frontend"`
	Address            string                `json:"address"`
	Port               int                   `json:"port"`
	SSL                bool                  `json:"ssl"`
	SslCertificatePath string                `json:"ssl_certificate_path"`
}

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 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