model

package
v0.0.0-...-5897a89 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllRole = []Role{
	RoleAdmin,
	RoleUser,
}

Functions

This section is empty.

Types

type AccessRefInput

type AccessRefInput struct {
	User     string `json:"user"`
	Group    string `json:"group"`
	ReadOnly bool   `json:"readOnly"`
}

type AddonBindingStatus

type AddonBindingStatus struct {
	Name  string              `json:"name"`
	Phase v1alpha1.AddonPhase `json:"phase"`
}

type MaintenanceWindow

type MaintenanceWindow struct {
	Schedule string `json:"schedule"`
	Next     int64  `json:"next"`
}

type Metric

type Metric struct {
	Name   string        `json:"name"`
	Metric string        `json:"metric"`
	Format MetricFormat  `json:"format"`
	Values []MetricValue `json:"values"`
}

type MetricFormat

type MetricFormat string
const (
	MetricFormatBytes MetricFormat = "Bytes"
	MetricFormatCPU   MetricFormat = "CPU"
	MetricFormatTime  MetricFormat = "Time"
	MetricFormatRps   MetricFormat = "RPS"
	MetricFormatPlain MetricFormat = "Plain"
)

func (MetricFormat) IsValid

func (e MetricFormat) IsValid() bool

func (MetricFormat) MarshalGQL

func (e MetricFormat) MarshalGQL(w io.Writer)

func (MetricFormat) String

func (e MetricFormat) String() string

func (*MetricFormat) UnmarshalGQL

func (e *MetricFormat) UnmarshalGQL(v interface{}) error

type MetricValue

type MetricValue struct {
	Time  int64  `json:"time"`
	Value string `json:"value"`
}

type NewCluster

type NewCluster struct {
	Name  string                `json:"name"`
	Track v1alpha1.ReleaseTrack `json:"track"`
	Ha    bool                  `json:"ha"`
}

type Role

type Role string
const (
	RoleAdmin Role = "ADMIN"
	RoleUser  Role = "USER"
)

func (Role) IsValid

func (e Role) IsValid() bool

func (Role) MarshalGQL

func (e Role) MarshalGQL(w io.Writer)

func (Role) String

func (e Role) String() string

func (*Role) UnmarshalGQL

func (e *Role) UnmarshalGQL(v interface{}) error

type User

type User struct {
	Username string   `json:"username"`
	Groups   []string `json:"groups"`
}

Jump to

Keyboard shortcuts

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