reservations

package
v7.13.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldReservationsCSV            = "reservations_csv"
	FieldReservationsOrganizationId = "organization_id"
	FieldReservations               = "reservations"
	FieldReservationName            = "name"
	FieldReservationProvider        = "provider"
	FieldReservationRegion          = "region"
	FieldReservationInstanceType    = "instance_type"
	FieldReservationPrice           = "price"
	FieldReservationCount           = "count"
	FieldReservationStartDate       = "start_date"
	FieldReservationEndDate         = "end_date"
	FieldReservationZoneId          = "zone_id"
	FieldReservationZoneName        = "zone_name"

	// Azure specific fields
	FieldReservationProductName           = "product_name"
	FieldReservationQuantity              = "quantity"
	FieldReservationPurchaseDate          = "purchase_date"
	FieldReservationExpirationDate        = "expiration_date"
	FieldReservationType                  = "type"
	FieldReservationDeepLinkToReservation = "deep_link_to_reservation"
	FieldReservationID                    = "reservation_id"
	FieldReservationScopeResourceGroup    = "scope_resource_group"
	FieldReservationScopeSubscription     = "scope_subscription"
	FieldReservationScopeStatus           = "scope_status"
	FieldReservationScope                 = "scope"
	FieldReservationTerm                  = "term"
	FieldReservationStatus                = "status"
)

Variables

This section is empty.

Functions

func GetRecordFieldStringValue

func GetRecordFieldStringValue(field string, fieldIndexes map[string]int, record []string) *string

func GetRecordReservationProvider

func GetRecordReservationProvider(fieldIndexes map[string]int, record []string) (*string, error)

func MapReservationsHeaderToReservationFieldIndexes

func MapReservationsHeaderToReservationFieldIndexes(columns []string) map[string]int

Types

type ReservationResource

type ReservationResource map[string]*string

func MapCsvRecordsToReservationResources

func MapCsvRecordsToReservationResources(csvRecords [][]string) ([]*ReservationResource, error)

func MapReservationDetailsToReservationResource

func MapReservationDetailsToReservationResource(reservation sdk.CastaiInventoryV1beta1ReservationDetails) *ReservationResource

func MapToReservationResourcesWithCommonFieldsOnly

func MapToReservationResourcesWithCommonFieldsOnly(reservationResources []*ReservationResource) []*ReservationResource

Jump to

Keyboard shortcuts

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