cloudlets

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 15 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 TFPolicyActivationData

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

TFPolicyActivationData represents data used in policy activation resource templates

type TFPolicyData

type TFPolicyData struct {
	Name                    string
	CloudletCode            string
	Description             string
	GroupID                 int64
	MatchRuleFormat         cloudlets.MatchRuleFormat
	MatchRules              cloudlets.MatchRules
	PolicyActivations       map[string]TFPolicyActivationData
	LoadBalancers           []cloudlets.LoadBalancerVersion
	LoadBalancerActivations []cloudlets.LoadBalancerActivation
	Section                 string
}

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