Documentation ¶
Index ¶
- Constants
- type Api
- func (api *Api) AddNetworkObjectExcludedEntry(ctx context.Context, objectName string, object cuda.NetworkObjectExcludedEntry) error
- func (api *Api) AddNetworkObjectIncludedEntry(ctx context.Context, objectName string, object cuda.NetworkObjectIncludedEntry) error
- func (api *Api) BlockService(ctx context.Context, service string) error
- func (api *Api) ChangeNetworkObjectExcluded(ctx context.Context, objectName string, ...) error
- func (api *Api) ChangeNetworkObjectIncluded(ctx context.Context, objectName string, ...) error
- func (api *Api) ContextCC(ctx context.Context, ctxInfo ContextInfoCC) context.Context
- func (api *Api) ContextFW(ctx context.Context, ctxInfo ContextInfoFW) context.Context
- func (api *Api) Delete(ctx context.Context, endpoint string) error
- func (api *Api) DeleteNetworkObject(ctx context.Context, objectName string) error
- func (api *Api) DeleteNetworkObjectExcludedEntry(ctx context.Context, objectName string, entry string) error
- func (api *Api) DeleteNetworkObjectIncludedEntry(ctx context.Context, objectName string, entry string) error
- func (api *Api) EndpointRestBase() string
- func (api *Api) EndpointRestConfigBase() string
- func (api *Api) EndpointRestConfigCtx(ctx context.Context) (string, error)
- func (api *Api) EndpointRestConfigFirewall(ctx context.Context) (string, error)
- func (api *Api) EndpointRestConfigFirewallObjects(ctx context.Context) (string, error)
- func (api *Api) EndpointRestConfigFirewallObjectsNetworks(ctx context.Context) (string, error)
- func (api *Api) EndpointRestConfigFirewallObjectsNetworksByName(ctx context.Context, objectName string) (string, error)
- func (api *Api) EndpointRestControlBase() string
- func (api *Api) Get(ctx context.Context, endpoint string, target interface{}) error
- func (api *Api) GetNetworkObject(ctx context.Context, objectName string) (*cuda.NetworkObject, error)
- func (api *Api) GetService(ctx context.Context, service string) (*cuda.Service, error)
- func (api *Api) ListAdmins(ctx context.Context) ([]cuda.Admin, error)
- func (api *Api) ListAdminsSimple(ctx context.Context) ([]string, error)
- func (api *Api) ListBoxes(ctx context.Context, rangeID string, clusterName string) ([]cuda.Box, error)
- func (api *Api) ListBoxesSimple(ctx context.Context, rangeID string, clusterName string) ([]string, error)
- func (api *Api) ListClusters(ctx context.Context, rangeID string) ([]cuda.Cluster, error)
- func (api *Api) ListClustersSimple(ctx context.Context, rangeID string) ([]string, error)
- func (api *Api) ListNetworkObjects(ctx context.Context) ([]cuda.NetworkObject, error)
- func (api *Api) ListNetworkObjectsSimple(ctx context.Context) ([]string, error)
- func (api *Api) ListRanges(ctx context.Context) ([]cuda.Range, error)
- func (api *Api) ListRangesSimple(ctx context.Context) ([]string, error)
- func (api *Api) ListServices(ctx context.Context) ([]cuda.Service, error)
- func (api *Api) ListServicesSimple(ctx context.Context) ([]string, error)
- func (api *Api) ListSessions(ctx context.Context) ([]cuda.Session, error)
- func (api *Api) MakeNetworkObject(ctx context.Context, object *cuda.NetworkObject) error
- func (api *Api) Patch(ctx context.Context, endpoint string, body interface{}, target interface{}) error
- func (api *Api) Post(ctx context.Context, endpoint string, body interface{}, target interface{}) error
- func (api *Api) Put(ctx context.Context, endpoint string, body interface{}, target interface{}) error
- func (api *Api) ReplaceNetworkObject(ctx context.Context, object *cuda.NetworkObject) error
- func (api *Api) RestartService(ctx context.Context, service string) error
- func (api *Api) StartService(ctx context.Context, service string) error
- func (api *Api) StopService(ctx context.Context, service string) error
- func (api *Api) UpdateNetworkObject(ctx context.Context, object cuda.NetworkObjectUpdate) error
- type ApiErr
- type ContextInfoCC
- type ContextInfoFW
- type FirewallSharedType
Constants ¶
View Source
const ( CTX_CC_RANGE = "cc-range" CTX_CC_CLUSTER = "cc-cluster" CTX_CC_BOX = "cc-box" CTX_CC_BOX_SERVICE = "cc-box-service" CTX_CC_SERVER = "cc-server" CTX_CC_SERVER_SERVICE = "cc-server-service" CTX_CC_CLUSTER_SERVICE = "cc-cluster-service" CTX_CC_SHARED_SERVICE = "cc-shared-service" )
View Source
const ( CTX_FW_SHARED = "fw-shared" CTX_FW_SHARED_TYPE = "fw-shared-type" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
// contains filtered or unexported fields
}
func NewClientCC ¶
func (*Api) AddNetworkObjectExcludedEntry ¶
func (*Api) AddNetworkObjectIncludedEntry ¶
func (*Api) ChangeNetworkObjectExcluded ¶
func (*Api) ChangeNetworkObjectIncluded ¶
func (*Api) DeleteNetworkObject ¶
delete a network object by name
func (*Api) DeleteNetworkObjectExcludedEntry ¶
func (*Api) DeleteNetworkObjectIncludedEntry ¶
func (*Api) EndpointRestConfigBase ¶
func (*Api) EndpointRestConfigCtx ¶
func (*Api) EndpointRestConfigFirewall ¶
func (*Api) EndpointRestConfigFirewallObjects ¶
func (*Api) EndpointRestConfigFirewallObjectsNetworks ¶
func (*Api) EndpointRestConfigFirewallObjectsNetworksByName ¶
func (*Api) EndpointRestControlBase ¶
func (*Api) GetNetworkObject ¶
func (api *Api) GetNetworkObject(ctx context.Context, objectName string) (*cuda.NetworkObject, error)
get a network object by name
func (*Api) GetService ¶
func (*Api) ListAdminsSimple ¶
func (*Api) ListBoxesSimple ¶
func (*Api) ListClusters ¶
func (*Api) ListClustersSimple ¶
func (*Api) ListNetworkObjects ¶
list all network objects
func (*Api) ListNetworkObjectsSimple ¶
let all names of network objects
func (*Api) ListRangesSimple ¶
func (*Api) ListServices ¶
func (*Api) ListServicesSimple ¶
func (*Api) ListSessions ¶
func (*Api) MakeNetworkObject ¶
create a new network object
func (*Api) ReplaceNetworkObject ¶
replace a network object with a completely new value
func (*Api) RestartService ¶
func (*Api) UpdateNetworkObject ¶
update a network object with a differential value change
type ContextInfoCC ¶
type ContextInfoCC struct { // if empty, is global Range string Cluster string // either: Box string BoxService string // or... Server string ServerService string // or... ClusterService string SharedService string }
Context information passed
type ContextInfoFW ¶
type ContextInfoFW struct {}
Click to show internal directories.
Click to hide internal directories.