field

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldStrings

func FieldStrings() []string

FieldStrings returns a slice of all String values of the enum

Types

type Field

type Field uint8

Field represents a single column in an AWS offer file.

const (
	///// Product Attributes /////
	SKU             Field = iota // SKU
	CapacityStatus               // CapacityStatus
	Group                        // Group
	InstanceType                 // Instance Type
	Location                     // Location
	OperatingSystem              // Operating System
	PreInstalledSW               // Pre Installed S/W
	ProductFamily                // Product Family
	ServiceCode                  // serviceCode
	Tenancy                      // Tenancy
	UsageType                    // usageType
	VolumeAPIName                // Volume API Name
	VolumeType                   // Volume Type

	// ElastiCache
	CacheEngine // Cache Engine

	// RDS fields
	DatabaseEngine   // Database Engine
	DatabaseEdition  // Database Edition
	DeploymentOption // Deployment Option
	LicenseModel     // License Model

	///// Price Attributes /////
	Currency      // Currency
	PricePerUnit  // PricePerUnit
	StartingRange // StartingRange
	TermType      // TermType
	Unit          // Unit
)

List of fields used by the AWS pricing offer file (CSV).

func FieldString

func FieldString(s string) (Field, error)

FieldString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func FieldValues

func FieldValues() []Field

FieldValues returns all values of the enum

func (Field) IsAField

func (i Field) IsAField() bool

IsAField returns "true" if the value is listed in the enum definition. "false" otherwise

func (Field) String

func (i Field) String() string

Jump to

Keyboard shortcuts

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