openshift

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(r *gin.RouterGroup)

RegisterRoutes registers the routes for OpenShift

func RegisterSecRoutes added in v1.2.7

func RegisterSecRoutes(r *gin.RouterGroup)

Types

type ApiResponse added in v1.3.13

type ApiResponse struct {
	CSV  string      `json:"csv"`
	Rows []Resources `json:"rows"`
}

type Assignment added in v1.0.7

type Assignment struct {
	Facets []AssignmentFacet
}

type AssignmentFacet added in v1.3.13

type AssignmentFacet struct {
	Name    string
	Results []AssignmentResult
}

type AssignmentResult added in v1.0.7

type AssignmentResult struct {
	Latest string
}

type Auth added in v1.3.21

type Auth struct {
	// byte arrays are marshalled to base64
	Auth []byte `json:"auth"`
}

type Cluster added in v1.3.13

type Cluster string

type DockerConfig added in v1.3.21

type DockerConfig struct {
	Auths map[string]*Auth `json:"auths"`
}

type Features added in v1.4.0

type Features struct {
	Nfs     bool `json:"nfs"`
	Gluster bool `json:"gluster"`
}

func GetFeatures added in v1.4.0

func GetFeatures(clusterId string) Features

type GlusterApi added in v1.4.0

type GlusterApi struct {
	URL          string `json:"url"`
	Secret       string `json:"-"`
	IPs          string `json:"-"`
	StorageClass string `json:"-"`
}

type NfsApi added in v1.4.0

type NfsApi struct {
	URL          string `json:"url"`
	Secret       string `json:"-"`
	Proxy        string `json:"-"`
	StorageClass string `json:"-"`
}

type OpenshiftChargebackCommand added in v1.3.13

type OpenshiftChargebackCommand struct {
	Date            time.Time
	Cluster         Cluster
	ProjectContains string
}

type OpenshiftCluster added in v1.4.0

type OpenshiftCluster struct {
	ID       string   `json:"id"`
	Name     string   `json:"name"`
	Features []string `json:"features"`
	// exclude token from json marshal
	Token      string      `json:"-"`
	URL        string      `json:"url"`
	GlusterApi *GlusterApi `json:"-"`
	NfsApi     *NfsApi     `json:"-"`
}

type Pricing added in v1.3.13

type Pricing struct {
	QuotaCpu        float64
	QuotaMemory     float64
	Storage         float64
	RequestedCpu    float64
	RequestedMemory float64
	UsedCpu         float64
	UsedMemory      float64
}

type ProjectInformation added in v1.4.10

type ProjectInformation struct {
	Kontierungsnummer string `json:"kontierungsnummer"`
	MegaID            string `json:"megaid"`
}

type Queries added in v1.3.13

type Queries struct {
	// contains filtered or unexported fields
}

type Quota added in v1.0.7

type Quota struct {
	Facets []QuotaFacet
}

JSON Types

type QuotaFacet added in v1.3.13

type QuotaFacet struct {
	Name    string
	Results []QuotaResult
}

type QuotaResult added in v1.0.7

type QuotaResult struct {
	Average float64
}

type Resources added in v1.0.7

type Resources struct {
	Project             string
	ReceptionAssignment string
	OrderReception      string
	PspElement          string
	UsedCpu             float64
	UsedMemory          float64
	QuotaCpu            float64
	QuotaMemory         float64
	RequestedCpu        float64
	RequestedMemory     float64
	Storage             float64
	Prices              Pricing
}

Internal types

type Usage added in v1.0.7

type Usage struct {
	Facets []UsageFacet
}

type UsageFacet added in v1.3.13

type UsageFacet struct {
	Name    string
	Results []UsageResult
}

type UsageResult added in v1.0.7

type UsageResult struct {
	Result float64
}

Jump to

Keyboard shortcuts

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