applist

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// Name of the application inside this application list.
	Name string
	// ID of the custom application. If this is not a custom application,
	// then this is empty.
	ID string
}

type ApplicationList

type ApplicationList struct {
	ID           string
	Name         string
	Type         string
	Description  string
	Applications []Application
	LastUpdated  time.Time
	Owner        string
	ReadOnly     bool
	Version      string
	// NOTE: In the api this is called endpoint, but in the GUI it is called
	// probe. We're going to adapt this.
	Probe Probe
	// ListType can be either "standard" if already existing or "custom" if
	// created by the user.
	ListType       ListType
	ReferenceCount int
	// References is a list of policies, such as AppRoute, that refer to this
	// this policy application list. Or the contrary maybe.
	// NOTE: many times vmanage includes empty values, so this must be parsed
	// by the user anyways! Because we have ReferenceCount which we do not know
	// how it behaves!
	References []Reference
	// VsmartPoliciesIDs is a list of vSmart policies IDs that activate
	// this policy application list. If empty, it means that this application
	// list is not activated by any vSmart policy.
	VsmartPolicyIDs []string
	InfoTag         string
}

func (*ApplicationList) GetCreateUpdateOptions

func (a *ApplicationList) GetCreateUpdateOptions() CreateUpdateOptions

type CreateUpdateOptions

type CreateUpdateOptions struct {
	Name         string
	Description  string
	Applications []Application
	Probe        Probe
}

type ListType

type ListType string
const (
	Standard ListType = "standard"
	Custom   ListType = "custom"
)

type Probe

type Probe struct {
	Type  ProbeType
	Value string
}

type ProbeType

type ProbeType string
const (
	FQDNProbe ProbeType = "fqdn"
	URLProbe  ProbeType = "url"
	IPProbe   ProbeType = "ip"
)

type Reference

type Reference struct {
	ID   string `json:"id"`
	Type string `json:"type"`
}

Jump to

Keyboard shortcuts

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