cloudwrapper

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package cloudwrapper contains code for exporting CloudWrapper configuration

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFetchingConfiguration is returned when problem occurred during fetching configuration
	ErrFetchingConfiguration = errors.New("problem with fetching configuration")
	// ErrContainMultiCDNSettings is returned when configuration contains Multi CDN Setting
	ErrContainMultiCDNSettings = errors.New("configuration contains Multi CDN Settings")
	// ErrExportingCloudWrapper is returned when there is an issue related to export of CloudWrapper
	ErrExportingCloudWrapper = errors.New("error exporting CloudWrapper")
	// ErrSavingFiles is returned when an issue with processing templates occurs
	ErrSavingFiles = errors.New("saving terraform project files")
)

Functions

func CmdCreateCloudWrapper

func CmdCreateCloudWrapper(c *cli.Context) error

CmdCreateCloudWrapper is an entrypoint to export-cloudwrapper command

Types

type Capacity

type Capacity struct {
	Value int64
	Unit  string
}

Capacity represents capacity of location

type Location

type Location struct {
	TrafficTypeID int
	Comments      string
	Capacity      Capacity
}

Location represents CloudWrapper location

type TFCWConfiguration

type TFCWConfiguration struct {
	ConfigurationResourceName string
	ID                        int64
	ContractID                string
	Name                      string
	PropertyIDs               []string
	Comments                  string
	Status                    string
	NotificationEmails        []string
	RetainIdleObjects         bool
	CapacityAlertsThreshold   *int
	Locations                 []Location
	IsActive                  bool
}

TFCWConfiguration represents the data used for export CloudWrapper configuration

type TFCloudWrapperData

type TFCloudWrapperData struct {
	Configuration TFCWConfiguration
	Section       string
}

TFCloudWrapperData represents the data used in CloudWrapper

Jump to

Keyboard shortcuts

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