approute

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAppListsToSequences

func AddAppListsToSequences(sequences []ar.Sequence, toAdd [][2]string) []ar.Sequence

func RemoveAppListsFromSequences

func RemoveAppListsFromSequences(sequences []ar.Sequence, toRemove [][2]string) []ar.Sequence

Types

type Action

type Action struct {
	Type      string `json:"type"`
	Parameter string `json:"parameter,omitempty"`
}

type BulkPolicy

type BulkPolicy struct {
	Name        string     `json:"name"`
	Type        string     `json:"type"`
	Description string     `json:"description"`
	Sequences   []Sequence `json:"sequences"`
	ID          string     `json:"id"`
	IsCreate    bool       `json:"isCreate"`
}

func NewBulkPoliciesFromOptions

func NewBulkPoliciesFromOptions(opts ar.BulkOptions) []BulkPolicy

type BulkRequestBody

type BulkRequestBody struct {
	Definitions []BulkPolicy `json:"definitions"`
	ProcessID   string       `json:"processId"`
}

type Entry

type Entry struct {
	Field string `json:"field"`
	ID    string `json:"ref"`
}

type InternalPolicy

type InternalPolicy struct {
	Name                string      `json:"name"`
	DefinitionID        string      `json:"definitionId,omitempty"`
	Type                string      `json:"type"`
	Description         string      `json:"description"`
	Owner               string      `json:"owner"`
	LastUpdated         *int64      `json:"lastUpdated"`
	InfoTag             string      `json:"infoTag"`
	Mode                string      `json:"mode"`
	Optimized           string      `json:"optimized"`
	ReferenceCount      int         `json:"referenceCount"`
	References          []Reference `json:"references,omitempty"`
	Sequences           []Sequence  `json:"sequences,omitempty"`
	IsActivatedByVsmart bool        `json:"isActivatedByVsmart"`
	ActivatedID         []string    `json:"activatedId"`
}

func (*InternalPolicy) ToAppRoutePolicy

func (i *InternalPolicy) ToAppRoutePolicy() *ar.Policy

type Match

type Match struct {
	Entries []Entry `json:"entries"`
}

type Reference

type Reference struct {
	ID       string `json:"id"`
	Property string `json:"property"`
	Type     string `json:"type,omitempty"`
}

type Sequence

type Sequence struct {
	SequenceID     int      `json:"sequenceId"`
	SequenceName   string   `json:"sequenceName"`
	SequenceType   string   `json:"sequenceType"`
	SequenceIPType string   `json:"sequenceIpType"`
	Match          Match    `json:"match"`
	Actions        []Action `json:"actions"`
}

func NewSequences

func NewSequences(sequences []ar.Sequence) []Sequence

Jump to

Keyboard shortcuts

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