pricing

package
v0.0.0-...-39c936c Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanRepository

type PlanRepository interface {
	GetInstancePlan(profile string) (string, error)
	GetVolumePlan(profile string) (string, error)
	GetLBPlan() (string, error)
	GetIPPlan() (string, error)
	GetImagePlan() (string, error)
	GetVPCPlan() (string, error)
	GetVPNPlan() (string, error)

	GetPricing(intanceID string) (PricingPlan, error)
}

PlanRepository -

func NewPlanService

func NewPlanService(generation int, resource string) PlanRepository

NewPlanService -

type PricingPlan

type PricingPlan struct {
	Offset        int    `json:"offset"`
	Limit         int    `json:"limit"`
	Count         int    `json:"count"`
	ResourceCount int    `json:"resource_count"`
	First         string `json:"first"`
	Resources     []struct {
		Active      bool      `json:"active"`
		CatalogCrn  string    `json:"catalog_crn"`
		ChildrenURL string    `json:"children_url"`
		Created     time.Time `json:"created"`
		Disabled    bool      `json:"disabled"`
		GeoTags     []string  `json:"geo_tags"`
		ID          string    `json:"id"`
		Images      struct {
			FeatureImage string `json:"feature_image"`
			Image        string `json:"image"`
			MediumImage  string `json:"medium_image"`
			SmallImage   string `json:"small_image"`
		} `json:"images"`
		Kind     string `json:"kind"`
		Metadata struct {
			RcCompatible bool `json:"rc_compatible"`
		} `json:"metadata"`
		Name       string `json:"name"`
		OverviewUI struct {
			En struct {
				Description     string `json:"description"`
				DisplayName     string `json:"display_name"`
				LongDescription string `json:"long_description"`
			} `json:"en"`
		} `json:"overview_ui"`
		ParentID    string   `json:"parent_id"`
		ParentURL   string   `json:"parent_url"`
		PricingTags []string `json:"pricing_tags"`
		Provider    struct {
			Email string `json:"email"`
			Name  string `json:"name"`
		} `json:"provider"`
		Tags       []string  `json:"tags"`
		Updated    time.Time `json:"updated"`
		URL        string    `json:"url"`
		Visibility struct {
			Restrictions string `json:"restrictions"`
		} `json:"visibility"`
	} `json:"resources"`
}

Jump to

Keyboard shortcuts

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