vsmart

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivatePolicyRequestBody

type ActivatePolicyRequestBody struct {
	IsEdited  bool   `json:"isEdited"`
	ProcessID string `json:"processId"`
}

type InternalDefinition

type InternalDefinition struct {
	Assembly []InternalPolicyAssembly `json:"assembly"`
}

type InternalEntry

type InternalEntry struct {
	SiteLists []string `json:"siteLists"`
	VpnLists  []string `json:"vpnLists"`
}

type InternalPolicy

type InternalPolicy struct {
	PolicyID          string `json:"policyId"`
	PolicyName        string `json:"policyName"`
	PolicyDescription string `json:"policyDescription"`
	PolicyVersion     string `json:"policyVersion"`
	PolicyType        string `json:"policyType"`
	CreatedOn         int64  `json:"createdOn"`
	CreatedBy         string `json:"createdBy"`
	LastUpdatedBy     string `json:"lastUpdatedBy"`
	LastUpdatedOn     int64  `json:"lastUpdatedOn"`
	IsPolicyActivated bool   `json:"isPolicyActivated"`
	RID               int    `json:"@rid"`
	PolicyDefinition  string `json:"policyDefinition"`
}

func (*InternalPolicy) ToPolicy

func (p *InternalPolicy) ToPolicy() *vsmart.Policy

type InternalPolicyAssembly

type InternalPolicyAssembly struct {
	DefinitionID string          `json:"definitionId"`
	Type         string          `json:"type"`
	Entries      []InternalEntry `json:"entries"`
}

type UpdatePolicyRequestBody

type UpdatePolicyRequestBody struct {
	PolicyDescription string             `json:"policyDescription"`
	PolicyType        string             `json:"policyType"`
	PolicyName        string             `json:"policyName"`
	Definition        InternalDefinition `json:"policyDefinition"`
	IsPolicyActivated bool               `json:"isPolicyActivated"`
}

func NewUpdatePolicyRequestBody

func NewUpdatePolicyRequestBody(pol *vsmart.Policy) *UpdatePolicyRequestBody

Jump to

Keyboard shortcuts

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