networkaccessmanager

package
v1.35.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiNAMstatus

type ApiNAMstatus struct {
	Version       string          `json:"version"`
	ApiVersion    string          `json:"api_version,omitempty"`
	Status        string          `json:"status,omitempty"`
	StatusMessage string          `json:"status_message,omitempty"`
	StatusDetails []StatusDetails `json:"status_details,omitempty"`
}

type ApiNwtargetsResponse

type ApiNwtargetsResponse struct {
	Count int    `json:"count"`
	Items []Item `json:"items"`
}

type ApiNwtargetsResponsePost

type ApiNwtargetsResponsePost struct {
	ID string `json:"id,omitempty"`
}

type DisabledStruct

type DisabledStruct struct {
	Disabled bool `json:"disabled,omitempty"`
}

type Dst

type Dst struct {
	Selector Selector `json:"selector,omitempty"`
	Nat      *Nat     `json:"nat,omitempty"`
}

type Ip

type Ip struct {
	Start string `json:"start,omitempty"`
	End   string `json:"end,omitempty"`
}

type Item

type Item struct {
	ID               string `json:"id,omitempty"`
	Created          string `json:"created,omitempty"`
	Updated          string `json:"updated,omitempty"`
	UpdatedBy        string `json:"updated_by,omitempty"`
	Author           string `json:"author,omitempty"`
	Comment          string `json:"comment,omitempty"`
	Name             string `json:"name,omitempty"`
	UserInstructions string `json:"user_instructions,omitempty"`
	SrcNat           bool   `json:"src_nat,omitempty"`
	Roles            []Role `json:"roles,omitempty"`
	Dst              []Dst  `json:"dst,omitempty"`
	ExclusiveAccess  bool   `json:"exclusive_access,omitempty"`
	Disabled         string `json:"disabled,omitempty"`
}

type KeywordsStruct

type KeywordsStruct struct {
	Keywords string `json:"keywords,omitempty"`
}

type Nat

type Nat struct {
	Addr string `json:"addr,omitempty"`
	Port int    `json:"port,omitempty"`
}

type NetworkAccessManager

type NetworkAccessManager struct {
	// contains filtered or unexported fields
}

NetworkAccessManager is a network access manager client instance.

func New

New creates a new network access manager client instance, using the argument SDK API client.

func (*NetworkAccessManager) CreateNetworkTargets

func (nam *NetworkAccessManager) CreateNetworkTargets(network Item) (ApiNwtargetsResponsePost, error)

nwtargets Create network target

func (*NetworkAccessManager) DeleteNetworkTargetByID

func (nam *NetworkAccessManager) DeleteNetworkTargetByID(NetworkTargetID string) error

nwtarget Delete network target by ID

func (*NetworkAccessManager) DisableNetworkTargetByID

func (nam *NetworkAccessManager) DisableNetworkTargetByID(DisabledVal bool, NetworkTargetID string) error

nwtarget disable a network target

func (*NetworkAccessManager) GetNetworkTargetByID

func (nam *NetworkAccessManager) GetNetworkTargetByID(NetworkTargetID string) (Item, error)

nwtarget Get network targets by ID

func (*NetworkAccessManager) GetNetworkTargets

func (nam *NetworkAccessManager) GetNetworkTargets(offset, limit int, sortkey, sortdir, name, id string) (ApiNwtargetsResponse, error)

nwtargets Get network targets

func (*NetworkAccessManager) NetworkAccessManagerStatus

func (nam *NetworkAccessManager) NetworkAccessManagerStatus() (ApiNAMstatus, error)

Get microservice status

func (*NetworkAccessManager) SearchNetworkTargets

func (nam *NetworkAccessManager) SearchNetworkTargets(offset, limit int, sortkey, sortdir, filter, keywords string) (ApiNwtargetsResponse, error)

nwtargets Search network target

func (*NetworkAccessManager) UpdateNetworkTarget

func (nam *NetworkAccessManager) UpdateNetworkTarget(networkTarget *Item, NetworkTargetID string) error

nwtarget Update a network target

type Params

type Params struct {
	Offset  int    `json:"offset,omitempty"`
	Limit   int    `json:"limit,omitempty"`
	Sortkey string `json:"sortkey,omitempty"`
	Sortdir string `json:"sortdir,omitempty"`
	Name    string `json:"name,omitempty"`
	ID      string `json:"id,omitempty"`
	Filter  string `json:"filter,omitempty"`
}

type Port

type Port struct {
	Start int `json:"start,omitempty"`
	End   int `json:"end,omitempty"`
}

type Role

type Role struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type Selector

type Selector struct {
	IP    Ip     `json:"ip,omitempty"`
	Port  Port   `json:"port,omitempty"`
	Proto string `json:"proto,omitempty"`
}

type StatusDetails

type StatusDetails struct {
	Key   string `json:"k,omitempty"`
	Value string `json:"v,omitempty"`
}

Jump to

Keyboard shortcuts

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