acl

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACL

type ACL struct {
	CustomerIdentifier string                 `json:"customer_identifier"`
	ResellerIdentifier string                 `json:"reseller_identifier"`
	Identifier         string                 `json:"identifier"`
	Name               string                 `json:"name"`
	ParentType         string                 `json:"parent_type"`
	Frontend           *frontend.FrontendInfo `json:"frontend"`
	Backend            *backend.BackendInfo   `json:"backend"`
	Criterion          string                 `json:"criterion"`
	Index              int                    `json:"index"`
	Value              string                 `json:"value"`
}

type ACLInfo

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

type API

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

API contains methods for load balancer backend management.

func NewAPI

func NewAPI(c client.Client) API

NewAPI creates a new load balancer backend API instance with the given client.

type Definition

type Definition struct {
	Name       string       `json:"name"`
	State      common.State `json:"state"`
	ParentType string       `json:"parent_type"`
	Criterion  string       `json:"criterion"`
	Index      int          `json:"index"`
	Value      string       `json:"value"`
	Frontend   *string      `json:"frontend,omitempty"`
	Backend    *string      `json:"backend,omitempty"`
}

Definition describes the ACL object that should be created

Jump to

Keyboard shortcuts

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