crd

package
v0.0.0-...-6523e92 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupName = "aws.uswitch.com"
	Version   = "v1"
)
View Source
const (
	TypeNormal  = "Normal"
	TypeWarning = "Warning"
)

Variables

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}

Functions

func EnsureResource

func EnsureResource(client apiextensionsclient.Interface) error

func NewClient

func NewClient(cfg *rest.Config) (*rest.RESTClient, *runtime.Scheme, error)

Types

type AutoScalerSpec

type AutoScalerSpec struct {
	Queue      string    `json:"queue"`
	Deployment string    `json:"deployment"`
	MinPods    int32     `json:"minPods"`
	MaxPods    int32     `json:"maxPods"`
	ScaleUp    ScaleSpec `json:"scaleUp"`
	ScaleDown  ScaleSpec `json:"scaleDown"`
}

type Cache

type Cache struct {
	Store cache.Indexer
	// contains filtered or unexported fields
}

func NewCache

func NewCache(client *rest.RESTClient, syncInterval time.Duration) *Cache

func (Cache) Run

func (c Cache) Run(ctx context.Context)

type ScaleSpec

type ScaleSpec struct {
	Threshold int64 `json:"threshold"`
	Amount    int32 `json:"amount"`
}

type SqsAutoScaler

type SqsAutoScaler struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              AutoScalerSpec `json:"spec"`
}

func (*SqsAutoScaler) RecordEvent

func (s *SqsAutoScaler) RecordEvent(k *kubernetes.Clientset, eventType, reason, message string) error

type SqsAutoScalerList

type SqsAutoScalerList struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Items             []SqsAutoScaler `json:"items"`
}

Jump to

Keyboard shortcuts

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