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 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.
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
Click to show internal directories.
Click to hide internal directories.