cloudlets

package
v1.14.0 Latest Latest
Warning

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

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

Documentation

Overview

Package cloudlets contains code for exporting cloudlets configuration

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFetchingPolicy is returned when fetching policy fails
	ErrFetchingPolicy = errors.New("unable to fetch policy with given name")
	// ErrFetchingVersion is returned when fetching policy version fails
	ErrFetchingVersion = errors.New("unable to fetch latest policy version")
	// ErrCloudletTypeNotSupported is returned when a provided cloudlet type is not yet supported
	ErrCloudletTypeNotSupported = errors.New("cloudlet type not supported")
)

Functions

func CmdCreatePolicy

func CmdCreatePolicy(c *cli.Context) error

CmdCreatePolicy is an entrypoint to create-policy command

Types

type LoadBalancerVersion added in v1.11.0

type LoadBalancerVersion struct {
	cloudlets.LoadBalancerVersion
	OriginDescription string
}

LoadBalancerVersion ...

type TFPolicyActivationData

type TFPolicyActivationData struct {
	PolicyID   int64
	Version    int64
	Properties []string
	IsV3       bool
}

TFPolicyActivationData represents data used in policy activation resource templates

type TFPolicyActivationsData added in v1.12.0

type TFPolicyActivationsData struct {
	Staging    *TFPolicyActivationData
	Production *TFPolicyActivationData
	IsV3       bool
}

TFPolicyActivationsData represents data used in policy all activation resource templates

type TFPolicyData

type TFPolicyData struct {
	Name                    string
	CloudletCode            string
	OriginDescription       string
	Description             string
	GroupID                 int64
	MatchRuleFormat         cloudlets.MatchRuleFormat
	MatchRules              any
	PolicyActivations       TFPolicyActivationsData
	LoadBalancers           []LoadBalancerVersion
	LoadBalancerActivations []cloudlets.LoadBalancerActivation
	Section                 string
	IsV3                    bool
}

TFPolicyData represents the data used in policy templates

Jump to

Keyboard shortcuts

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