model

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StosLicence added in v1.2.15

type StosLicence struct {
	ClusterID            string
	ExpiresAt            time.Time
	ClusterCapacityBytes uint64
	UsedBytes            uint64
	Kind                 string
	CustomerName         string
	Features             *[]string
	Version              string
}

func (StosLicence) GetClusterCapacityBytes added in v1.2.15

func (l StosLicence) GetClusterCapacityBytes() uint64

func (StosLicence) GetClusterID added in v1.2.15

func (l StosLicence) GetClusterID() string

func (StosLicence) GetCustomerName added in v1.2.15

func (l StosLicence) GetCustomerName() string

func (StosLicence) GetExpiresAt added in v1.2.15

func (l StosLicence) GetExpiresAt() time.Time

func (StosLicence) GetFeatures added in v1.2.15

func (l StosLicence) GetFeatures() *[]string

func (StosLicence) GetKind added in v1.2.15

func (l StosLicence) GetKind() string

func (StosLicence) GetUsedBytes added in v1.2.15

func (l StosLicence) GetUsedBytes() uint64

func (StosLicence) GetVersion added in v1.2.15

func (l StosLicence) GetVersion() string

type StosObject

type StosObject struct {
	Inner interface{}

	ID        string
	Name      string
	Namespace string
	Labels    map[string]string
	Healthy   bool
}

StosObject is a wrapper around an object from the StorageOS API. Allows us to use the same interface around most of our code base.

func (StosObject) GetID

func (v StosObject) GetID() string

func (StosObject) GetInner

func (v StosObject) GetInner() interface{}

func (StosObject) GetLabels

func (v StosObject) GetLabels() map[string]string

func (StosObject) GetName

func (v StosObject) GetName() string

func (StosObject) GetNamespace

func (v StosObject) GetNamespace() string

func (StosObject) IsHealthy

func (v StosObject) IsHealthy() bool

Jump to

Keyboard shortcuts

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