types

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InstanceAddressTypeClusterExternal = InstanceAddressType("cluster-external")
	InstanceAddressTypeClusterInternal = InstanceAddressType("cluster-internal")
)

Functions

This section is empty.

Types

type AllowedUpstream added in v0.13.0

type AllowedUpstream struct {
	Host string `json:"host,omitempty"`
	Port int    `json:"port,omitempty"`
}

type Autoscale added in v0.7.4

type Autoscale struct {
	MinReplicas *int32 `json:"minReplicas,omitempty" form:"min"`
	MaxReplicas *int32 `json:"maxReplicas,omitempty" form:"max"`
	CPU         *int32 `json:"cpu,omitempty" form:"cpu"`
	Memory      *int32 `json:"memory,omitempty" form:"memory"`
	RPS         *int32 `json:"rps,omitempty" form:"rps"`
}

type Block added in v0.7.4

type Block struct {
	Name    string `json:"block_name" form:"block_name"`
	Content string `json:"content" form:"content"`
}

type CertManager added in v0.15.0

type CertManager struct {
	Issuer      string   `json:"issuer"`
	DNSNames    []string `json:"dnsNames,omitempty"`
	IPAddresses []string `json:"ipAddresses,omitempty"`

	// Name is used to multiple certificates in the same instance, and also to take over the manual certificates
	Name string `json:"name,omitempty"`
}

type CertificateInfo added in v0.9.3

type CertificateInfo struct {
	Name               string
	ValidFrom          time.Time
	ValidUntil         time.Time
	DNSNames           []string
	PublicKeyAlgorithm string
	PublicKeyBitSize   int

	IsManagedByCertManager bool
	CertManagerIssuer      string
}

type Event added in v0.29.0

type Event struct {
	First   time.Time `json:"first"`
	Last    time.Time `json:"last"`
	Type    string    `json:"type"`
	Reason  string    `json:"reason"`
	Message string    `json:"message"`
	Count   int32     `json:"count"`
}

type Flavor

type Flavor struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type InstanceAddress added in v0.7.4

type InstanceAddress struct {
	Type        InstanceAddressType `json:"type"`
	ServiceName string              `json:"serviceName,omitempty"`
	IngressName string              `json:"ingressName,omitempty"`
	Hostname    string              `json:"hostname,omitempty"`
	IP          string              `json:"ip,omitempty"`
	Status      string              `json:"status"`
}

type InstanceAddressType added in v0.15.0

type InstanceAddressType string

type InstanceInfo added in v0.7.4

type InstanceInfo struct {
	Dashboard    string                   `json:"dashboard,omitempty"`
	Addresses    []InstanceAddress        `json:"addresses,omitempty"`
	Replicas     *int32                   `json:"replicas,omitempty"`
	Plan         string                   `json:"plan,omitempty"`
	Blocks       []Block                  `json:"blocks,omitempty"`
	Routes       []Route                  `json:"routes,omitempty"`
	Autoscale    *autogenerated.Autoscale `json:"autoscale,omitempty"`
	ACLs         []AllowedUpstream        `json:"acls,omitempty"`
	Binds        []v1alpha1.Bind          `json:"binds,omitempty"`
	Team         string                   `json:"team,omitempty"`
	Name         string                   `json:"name,omitempty"`
	Service      string                   `json:"service,omitempty"`
	Description  string                   `json:"description,omitempty"`
	Cluster      string                   `json:"cluster,omitempty"` // for multi-cluster environments
	Pool         string                   `json:"pool,omitempty"`    // for multi-cluster environments
	Tags         []string                 `json:"tags,omitempty"`
	Annotations  []string                 `json:"annotations,omitempty" `
	Pods         []Pod                    `json:"pods,omitempty"`
	Flavors      []string                 `json:"flavors,omitempty"`
	Certificates []CertificateInfo        `json:"certificates,omitempty"`
	Events       []Event                  `json:"events,omitempty"`
	PlanOverride *v1alpha1.RpaasPlanSpec  `json:"planOverride,omitempty"`
	ExtraFiles   []RpaasFile              `json:"extraFiles,omitempty"`
	Shutdown     bool                     `json:"shutdown"`
}

type Metadata added in v0.42.0

type Metadata struct {
	Labels      []MetadataItem `json:"labels"`
	Annotations []MetadataItem `json:"annotations"`
}

type MetadataItem added in v0.42.0

type MetadataItem struct {
	Name  string `json:"name"`
	Value string `json:"value,omitempty"`
}

type Plan

type Plan struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Default     bool   `json:"default"`
}

type Pod added in v0.8.1

type Pod struct {
	CreatedAt    time.Time   `json:"createdAt,omitempty"`
	TerminatedAt time.Time   `json:"terminatedAt,omitempty"`
	Name         string      `json:"name"`
	IP           string      `json:"ip"`
	HostIP       string      `json:"host"`
	Status       string      `json:"status"`
	Ports        []PodPort   `json:"ports,omitempty"`
	Errors       []PodError  `json:"errors,omitempty"`
	Restarts     int32       `json:"restarts"`
	Ready        bool        `json:"ready"`
	Metrics      *PodMetrics `json:"metrics,omitempty"`
}

type PodError added in v0.8.1

type PodError struct {
	First   time.Time `json:"first"`
	Last    time.Time `json:"last"`
	Message string    `json:"message"`
	Count   int32     `json:"count"`
}

type PodMetrics added in v0.9.3

type PodMetrics struct {
	CPU    string `json:"cpu"`
	Memory string `json:"memory"`
}

type PodPort added in v0.8.1

type PodPort corev1.ContainerPort

func (PodPort) String added in v0.8.1

func (p PodPort) String() string

type Route added in v0.7.4

type Route struct {
	Path        string `json:"path" form:"path"`
	Destination string `json:"destination,omitempty" form:"destination,omitempty"`
	HTTPSOnly   bool   `json:"https_only,omitempty" form:"https_only,omitempty"`
	Content     string `json:"content,omitempty" form:"content,omitempty"`
}

type RpaasFile added in v0.27.5

type RpaasFile struct {
	Name    string `json:"name"`
	Content []byte `json:"content"`
}

Jump to

Keyboard shortcuts

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