cm

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const BasePath = "mgmt/tm/cm"
View Source
const CertEndpoint = "/cert"

CertEndpoint represents the REST resource for managing a Cert.

View Source
const DeviceEndpoint = "/device"

DeviceEndpoint represents the REST resource for managing a device.

View Source
const DeviceGroupEndpoint = "/device-group"

DeviceGroupEndpoint represents the REST resource for managing a DeviceGroup.

View Source
const KeyEndpoint = "/key"

KeyEndpoint represents the REST resource for managing a Key.

View Source
const TrafficGroupEndpoint = "/traffic-group"

TrafficGroupEndpoint represents the REST resource for managing a TrafficGroup.

View Source
const TrustDomainEndpoint = "/trust-domain"

TrustDomainEndpoint represents the REST resource for managing a TrustDomain.

Variables

This section is empty.

Functions

This section is empty.

Types

type CM

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

func New

func New(c *f5.Client) CM

New creates a new CM client.

func (CM) Cert

func (cm CM) Cert() *CertResource

Cert returns a CertResource configured to query tm/cm/cert API.

func (CM) Device

func (cm CM) Device() *DeviceResource

Device returns a DeviceResource configured to query tm/cm/device API.

func (CM) DeviceGroup

func (cm CM) DeviceGroup() *DeviceGroupResource

DeviceGroup returns a DeviceGroupResource configured to query tm/cm/device-group API.

func (CM) Key

func (cm CM) Key() *KeyResource

Key returns a KeyResource configured to query tm/cm/key API.

func (CM) TrafficGroup

func (cm CM) TrafficGroup() *TrafficGroupResource

TrafficGroup returns a TrafficGroupResource configured to query tm/cm/traffic-group API.

func (CM) TrustDomain

func (cm CM) TrustDomain() *TrustDomainResource

TrustDomain returns a TrustDomainResource configured to query tm/cm/trust-domain API.

type Cert

type Cert struct {
	CertificateKeySize int    `json:"certificateKeySize,omitempty"`
	Checksum           string `json:"checksum,omitempty"`
	CreateTime         string `json:"createTime,omitempty"`
	CreatedBy          string `json:"createdBy,omitempty"`
	ExpirationDate     int    `json:"expirationDate,omitempty"`
	ExpirationString   string `json:"expirationString,omitempty"`
	FullPath           string `json:"fullPath,omitempty"`
	Generation         int    `json:"generation,omitempty"`
	IsBundle           string `json:"isBundle,omitempty"`
	Issuer             string `json:"issuer,omitempty"`
	KeyType            string `json:"keyType,omitempty"`
	Kind               string `json:"kind,omitempty"`
	LastUpdateTime     string `json:"lastUpdateTime,omitempty"`
	Mode               int    `json:"mode,omitempty"`
	Name               string `json:"name,omitempty"`
	Revision           int    `json:"revision,omitempty"`
	SelfLink           string `json:"selfLink,omitempty"`
	SerialNumber       string `json:"serialNumber,omitempty"`
	Size               int    `json:"size,omitempty"`
	Subject            string `json:"subject,omitempty"`
	UpdatedBy          string `json:"updatedBy,omitempty"`
	Version            int    `json:"version,omitempty"`
}

A Cert hold the configuration for a Cert.

type CertList

type CertList struct {
	Items    []Cert `json:"items,omitempty"`
	Kind     string `json:"kind,omitempty"`
	SelfLink string `json:"selfLink,omitempty"`
}

A CertList holds a list of Cert.

type CertResource

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

A CertResource provides API to manage Certs configuration.

func (*CertResource) Create

func (pr *CertResource) Create(item Cert) error

Create a new Cert configuration.

func (*CertResource) Delete

func (pr *CertResource) Delete(id string) error

Delete a single Cert configuration identified by id.

func (*CertResource) Edit

func (pr *CertResource) Edit(id string, item Cert) error

Edit a Cert configuration identified by id.

func (*CertResource) Get

func (pr *CertResource) Get(id string) (*Cert, error)

Get a single Cert configuration identified by id.

func (*CertResource) ListAll

func (pr *CertResource) ListAll() (*CertList, error)

ListAll lists all the Cert configurations.

type Device

type Device struct {
	ActiveModules []string `json:"activeModules,omitempty"`
	BaseMac       string   `json:"baseMac,omitempty"`
	Build         string   `json:"build,omitempty"`
	Cert          string   `json:"cert,omitempty"`
	CertReference struct {
		Link string `json:"link,omitempty"`
	} `json:"certReference,omitempty"`
	ChassisID     string `json:"chassisId,omitempty"`
	ChassisType   string `json:"chassisType,omitempty"`
	ConfigsyncIP  string `json:"configsyncIp,omitempty"`
	Edition       string `json:"edition,omitempty"`
	FailoverState string `json:"failoverState,omitempty"`
	FullPath      string `json:"fullPath,omitempty"`
	Generation    int    `json:"generation,omitempty"`
	HaCapacity    int    `json:"haCapacity,omitempty"`
	Hostname      string `json:"hostname,omitempty"`
	Key           string `json:"key,omitempty"`
	KeyReference  struct {
		Link string `json:"link,omitempty"`
	} `json:"keyReference,omitempty"`
	Kind              string   `json:"kind,omitempty"`
	ManagementIP      string   `json:"managementIp,omitempty"`
	MarketingName     string   `json:"marketingName,omitempty"`
	MirrorIP          string   `json:"mirrorIp,omitempty"`
	MirrorSecondaryIP string   `json:"mirrorSecondaryIp,omitempty"`
	MulticastIP       string   `json:"multicastIp,omitempty"`
	MulticastPort     int      `json:"multicastPort,omitempty"`
	Name              string   `json:"name,omitempty"`
	OptionalModules   []string `json:"optionalModules,omitempty"`
	PlatformID        string   `json:"platformId,omitempty"`
	Product           string   `json:"product,omitempty"`
	SelfDevice        string   `json:"selfDevice,omitempty"`
	SelfLink          string   `json:"selfLink,omitempty"`
	TimeZone          string   `json:"timeZone,omitempty"`
	Version           string   `json:"version,omitempty"`
}

A Device hold the configuration for a device.

type DeviceGroup

type DeviceGroup struct {
	AsmSync          string `json:"asmSync,omitempty"`
	AutoSync         string `json:"autoSync,omitempty"`
	DevicesReference struct {
		IsSubcollection bool   `json:"isSubcollection,omitempty"`
		Link            string `json:"link,omitempty"`
	} `json:"devicesReference,omitempty"`
	FullLoadOnSync               string `json:"fullLoadOnSync,omitempty"`
	FullPath                     string `json:"fullPath,omitempty"`
	Generation                   int    `json:"generation,omitempty"`
	IncrementalConfigSyncSizeMax int    `json:"incrementalConfigSyncSizeMax,omitempty"`
	Kind                         string `json:"kind,omitempty"`
	Name                         string `json:"name,omitempty"`
	NetworkFailover              string `json:"networkFailover,omitempty"`
	Partition                    string `json:"partition,omitempty"`
	SaveOnAutoSync               string `json:"saveOnAutoSync,omitempty"`
	SelfLink                     string `json:"selfLink,omitempty"`
	Type                         string `json:"type,omitempty"`
}

A DeviceGroup hold the configuration for a DeviceGroup.

type DeviceGroupList

type DeviceGroupList struct {
	Items    []DeviceGroup `json:"items,omitempty"`
	Kind     string        `json:"kind,omitempty"`
	SelfLink string        `json:"selfLink,omitempty"`
}

A DeviceGroupList holds a list of DeviceGroup.

type DeviceGroupResource

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

A DeviceGroupResource provides API to manage DeviceGroups configuration.

func (*DeviceGroupResource) Create

func (pr *DeviceGroupResource) Create(item DeviceGroup) error

Create a new DeviceGroup configuration.

func (*DeviceGroupResource) Delete

func (pr *DeviceGroupResource) Delete(id string) error

Delete a single DeviceGroup configuration identified by id.

func (*DeviceGroupResource) Edit

func (pr *DeviceGroupResource) Edit(id string, item DeviceGroup) error

Edit a DeviceGroup configuration identified by id.

func (*DeviceGroupResource) Get

func (pr *DeviceGroupResource) Get(id string) (*DeviceGroup, error)

Get a single DeviceGroup configuration identified by id.

func (*DeviceGroupResource) ListAll

func (pr *DeviceGroupResource) ListAll() (*DeviceGroupList, error)

ListAll lists all the DeviceGroup configurations.

type DeviceList

type DeviceList struct {
	Items    []Device `json:"items,omitempty"`
	Kind     string   `json:"kind,omitempty"`
	SelfLink string   `json:"selfLink,omitempty"`
}

A DeviceList holds a list of Device.

type DeviceResource

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

A DeviceResource provides API to manage Devices configuration.

func (*DeviceResource) Create

func (pr *DeviceResource) Create(item Device) error

Create a new Device configuration.

func (*DeviceResource) Delete

func (pr *DeviceResource) Delete(id string) error

Delete a single Device configuration identified by id.

func (*DeviceResource) Edit

func (pr *DeviceResource) Edit(id string, item Device) error

Edit a Device configuration identified by id.

func (*DeviceResource) Get

func (pr *DeviceResource) Get(id string) (*Device, error)

Get a single Device configuration identified by id.

func (*DeviceResource) ListAll

func (pr *DeviceResource) ListAll() (*DeviceList, error)

ListAll lists all the Device configurations.

type Key

type Key struct {
	Checksum       string `json:"checksum,omitempty"`
	CreateTime     string `json:"createTime,omitempty"`
	CreatedBy      string `json:"createdBy,omitempty"`
	FullPath       string `json:"fullPath,omitempty"`
	Generation     int    `json:"generation,omitempty"`
	KeySize        int    `json:"keySize,omitempty"`
	KeyType        string `json:"keyType,omitempty"`
	Kind           string `json:"kind,omitempty"`
	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
	Mode           int    `json:"mode,omitempty"`
	Name           string `json:"name,omitempty"`
	Partition      string `json:"partition,omitempty"`
	Revision       int    `json:"revision,omitempty"`
	SecurityType   string `json:"securityType,omitempty"`
	SelfLink       string `json:"selfLink,omitempty"`
	Size           int    `json:"size,omitempty"`
	UpdatedBy      string `json:"updatedBy,omitempty"`
}

A Key hold the configuration for a Key.

type KeyList

type KeyList struct {
	Items    []Key  `json:"items,omitempty"`
	Kind     string `json:"kind,omitempty"`
	SelfLink string `json:"selfLink,omitempty"`
}

A KeyList holds a list of Key.

type KeyResource

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

A KeyResource provides API to manage Keys configuration.

func (*KeyResource) Create

func (pr *KeyResource) Create(item Key) error

Create a new Key configuration.

func (*KeyResource) Delete

func (pr *KeyResource) Delete(id string) error

Delete a single Key configuration identified by id.

func (*KeyResource) Edit

func (pr *KeyResource) Edit(id string, item Key) error

Edit a Key configuration identified by id.

func (*KeyResource) Get

func (pr *KeyResource) Get(id string) (*Key, error)

Get a single Key configuration identified by id.

func (*KeyResource) ListAll

func (pr *KeyResource) ListAll() (*KeyList, error)

ListAll lists all the Key configurations.

type TrafficGroup

type TrafficGroup struct {
	AutoFailbackEnabled string `json:"autoFailbackEnabled,omitempty"`
	AutoFailbackTime    int    `json:"autoFailbackTime,omitempty"`
	FullPath            string `json:"fullPath,omitempty"`
	Generation          int    `json:"generation,omitempty"`
	HaLoadFactor        int    `json:"haLoadFactor,omitempty"`
	IsFloating          string `json:"isFloating,omitempty"`
	Kind                string `json:"kind,omitempty"`
	Mac                 string `json:"mac,omitempty"`
	Name                string `json:"name,omitempty"`
	SelfLink            string `json:"selfLink,omitempty"`
	UnitID              int    `json:"unitId,omitempty"`
}

A TrafficGroup hold the configuration for a TrafficGroup.

type TrafficGroupList

type TrafficGroupList struct {
	Items    []TrafficGroup `json:"items,omitempty"`
	Kind     string         `json:"kind,omitempty"`
	SelfLink string         `json:"selfLink,omitempty"`
}

A TrafficGroupList holds a list of TrafficGroup.

type TrafficGroupResource

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

A TrafficGroupResource provides API to manage TrafficGroups configuration.

func (*TrafficGroupResource) Create

func (pr *TrafficGroupResource) Create(item TrafficGroup) error

Create a new TrafficGroup configuration.

func (*TrafficGroupResource) Delete

func (pr *TrafficGroupResource) Delete(id string) error

Delete a single TrafficGroup configuration identified by id.

func (*TrafficGroupResource) Edit

func (pr *TrafficGroupResource) Edit(id string, item TrafficGroup) error

Edit a TrafficGroup configuration identified by id.

func (*TrafficGroupResource) Get

Get a single TrafficGroup configuration identified by id.

func (*TrafficGroupResource) ListAll

func (pr *TrafficGroupResource) ListAll() (*TrafficGroupList, error)

ListAll lists all the TrafficGroup configurations.

type TrustDomain

type TrustDomain struct {
	CaCert                string `json:"caCert,omitempty"`
	CaCertBundle          string `json:"caCertBundle,omitempty"`
	CaCertBundleReference struct {
		Link string `json:"link,omitempty"`
	} `json:"caCertBundleReference,omitempty"`
	CaCertReference struct {
		Link string `json:"link,omitempty"`
	} `json:"caCertReference,omitempty"`
	CaDevices          []string `json:"caDevices,omitempty"`
	CaDevicesReference []struct {
		Link string `json:"link,omitempty"`
	} `json:"caDevicesReference,omitempty"`
	CaKey          string `json:"caKey,omitempty"`
	CaKeyReference struct {
		Link string `json:"link,omitempty"`
	} `json:"caKeyReference,omitempty"`
	FullPath            string `json:"fullPath,omitempty"`
	Generation          int    `json:"generation,omitempty"`
	Kind                string `json:"kind,omitempty"`
	Name                string `json:"name,omitempty"`
	SelfLink            string `json:"selfLink,omitempty"`
	Status              string `json:"status,omitempty"`
	TrustGroup          string `json:"trustGroup,omitempty"`
	TrustGroupReference struct {
		Link string `json:"link,omitempty"`
	} `json:"trustGroupReference,omitempty"`
}

A TrustDomain hold the configuration for a TrustDomain.

type TrustDomainList

type TrustDomainList struct {
	Items    []TrustDomain `json:"items,omitempty"`
	Kind     string        `json:"kind,omitempty"`
	SelfLink string        `json:"selfLink,omitempty"`
}

A TrustDomainList holds a list of TrustDomain.

type TrustDomainResource

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

A TrustDomainResource provides API to manage TrustDomains configuration.

func (*TrustDomainResource) Create

func (pr *TrustDomainResource) Create(item TrustDomain) error

Create a new TrustDomain configuration.

func (*TrustDomainResource) Delete

func (pr *TrustDomainResource) Delete(id string) error

Delete a single TrustDomain configuration identified by id.

func (*TrustDomainResource) Edit

func (pr *TrustDomainResource) Edit(id string, item TrustDomain) error

Edit a TrustDomain configuration identified by id.

func (*TrustDomainResource) Get

func (pr *TrustDomainResource) Get(id string) (*TrustDomain, error)

Get a single TrustDomain configuration identified by id.

func (*TrustDomainResource) ListAll

func (pr *TrustDomainResource) ListAll() (*TrustDomainList, error)

ListAll lists all the TrustDomain configurations.

Jump to

Keyboard shortcuts

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