Documentation
¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Client
- type Clients
- type Interface
- type ServiceScaleRecommendation
- type ServiceScaleRecommendationChangeHandlerFunc
- type ServiceScaleRecommendationClient
- type ServiceScaleRecommendationClientCache
- type ServiceScaleRecommendationController
- type ServiceScaleRecommendationHandlerFunc
- type ServiceScaleRecommendationIndexer
- type ServiceScaleRecommendationInterface
- type ServiceScaleRecommendationLifecycle
- type ServiceScaleRecommendationList
- type ServiceScaleRecommendationLister
- type ServiceScaleRecommendationSpec
- type ServiceScaleRecommendationStatus
- type ServiceScaleRecommendationsGetter
Constants ¶
const ( GroupName = "rio-autoscale.cattle.io" Version = "v1" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var ( ServiceScaleRecommendationGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "ServiceScaleRecommendation", } ServiceScaleRecommendationResource = metav1.APIResource{ Name: "servicescalerecommendations", SingularName: "servicescalerecommendation", Namespaced: true, Kind: ServiceScaleRecommendationGroupVersionKind.Kind, } )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Factory ¶
func Kind ¶
Kind takes an unqualified kind and returns a Group qualified GroupKind
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Client ¶
func (*Client) ServiceScaleRecommendations ¶
func (c *Client) ServiceScaleRecommendations(namespace string) ServiceScaleRecommendationInterface
type Clients ¶
type Clients struct {
Interface Interface
ServiceScaleRecommendation ServiceScaleRecommendationClient
}
type Interface ¶
type Interface interface {
RESTClient() rest.Interface
controller.Starter
ServiceScaleRecommendationsGetter
}
type ServiceScaleRecommendation ¶
type ServiceScaleRecommendation struct {
types.Namespaced
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ServiceScaleRecommendationSpec `json:"spec,omitempty"`
Status ServiceScaleRecommendationStatus `json:"status,omitempty"`
}
func NewServiceScaleRecommendation ¶
func NewServiceScaleRecommendation(namespace, name string, obj ServiceScaleRecommendation) *ServiceScaleRecommendation
func (*ServiceScaleRecommendation) DeepCopy ¶
func (in *ServiceScaleRecommendation) DeepCopy() *ServiceScaleRecommendation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceScaleRecommendation.
func (*ServiceScaleRecommendation) DeepCopyInto ¶
func (in *ServiceScaleRecommendation) DeepCopyInto(out *ServiceScaleRecommendation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceScaleRecommendation) DeepCopyObject ¶
func (in *ServiceScaleRecommendation) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceScaleRecommendationChangeHandlerFunc ¶
type ServiceScaleRecommendationChangeHandlerFunc func(obj *ServiceScaleRecommendation) (runtime.Object, error)
type ServiceScaleRecommendationClient ¶
type ServiceScaleRecommendationClient interface {
Create(*ServiceScaleRecommendation) (*ServiceScaleRecommendation, error)
Get(namespace, name string, opts metav1.GetOptions) (*ServiceScaleRecommendation, error)
Update(*ServiceScaleRecommendation) (*ServiceScaleRecommendation, error)
Delete(namespace, name string, options *metav1.DeleteOptions) error
List(namespace string, opts metav1.ListOptions) (*ServiceScaleRecommendationList, error)
Watch(opts metav1.ListOptions) (watch.Interface, error)
Cache() ServiceScaleRecommendationClientCache
OnCreate(ctx context.Context, name string, sync ServiceScaleRecommendationChangeHandlerFunc)
OnChange(ctx context.Context, name string, sync ServiceScaleRecommendationChangeHandlerFunc)
OnRemove(ctx context.Context, name string, sync ServiceScaleRecommendationChangeHandlerFunc)
Enqueue(namespace, name string)
Generic() controller.GenericController
ObjectClient() *objectclient.ObjectClient
Interface() ServiceScaleRecommendationInterface
}
type ServiceScaleRecommendationClientCache ¶
type ServiceScaleRecommendationClientCache interface {
Get(namespace, name string) (*ServiceScaleRecommendation, error)
List(namespace string, selector labels.Selector) ([]*ServiceScaleRecommendation, error)
Index(name string, indexer ServiceScaleRecommendationIndexer)
GetIndexed(name, key string) ([]*ServiceScaleRecommendation, error)
}
type ServiceScaleRecommendationController ¶
type ServiceScaleRecommendationController interface {
Generic() controller.GenericController
Informer() cache.SharedIndexInformer
Lister() ServiceScaleRecommendationLister
AddHandler(ctx context.Context, name string, handler ServiceScaleRecommendationHandlerFunc)
AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ServiceScaleRecommendationHandlerFunc)
Enqueue(namespace, name string)
Sync(ctx context.Context) error
Start(ctx context.Context, threadiness int) error
}
type ServiceScaleRecommendationHandlerFunc ¶
type ServiceScaleRecommendationHandlerFunc func(key string, obj *ServiceScaleRecommendation) (runtime.Object, error)
func NewServiceScaleRecommendationLifecycleAdapter ¶
func NewServiceScaleRecommendationLifecycleAdapter(name string, clusterScoped bool, client ServiceScaleRecommendationInterface, l ServiceScaleRecommendationLifecycle) ServiceScaleRecommendationHandlerFunc
type ServiceScaleRecommendationIndexer ¶
type ServiceScaleRecommendationIndexer func(obj *ServiceScaleRecommendation) ([]string, error)
type ServiceScaleRecommendationInterface ¶
type ServiceScaleRecommendationInterface interface {
ObjectClient() *objectclient.ObjectClient
Create(*ServiceScaleRecommendation) (*ServiceScaleRecommendation, error)
GetNamespaced(namespace, name string, opts metav1.GetOptions) (*ServiceScaleRecommendation, error)
Get(name string, opts metav1.GetOptions) (*ServiceScaleRecommendation, error)
Update(*ServiceScaleRecommendation) (*ServiceScaleRecommendation, error)
Delete(name string, options *metav1.DeleteOptions) error
DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
List(opts metav1.ListOptions) (*ServiceScaleRecommendationList, error)
Watch(opts metav1.ListOptions) (watch.Interface, error)
DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
Controller() ServiceScaleRecommendationController
AddHandler(ctx context.Context, name string, sync ServiceScaleRecommendationHandlerFunc)
AddLifecycle(ctx context.Context, name string, lifecycle ServiceScaleRecommendationLifecycle)
AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ServiceScaleRecommendationHandlerFunc)
AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ServiceScaleRecommendationLifecycle)
}
type ServiceScaleRecommendationLifecycle ¶
type ServiceScaleRecommendationLifecycle interface {
Create(obj *ServiceScaleRecommendation) (runtime.Object, error)
Remove(obj *ServiceScaleRecommendation) (runtime.Object, error)
Updated(obj *ServiceScaleRecommendation) (runtime.Object, error)
}
type ServiceScaleRecommendationList ¶
type ServiceScaleRecommendationList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ServiceScaleRecommendation
}
func (*ServiceScaleRecommendationList) DeepCopy ¶
func (in *ServiceScaleRecommendationList) DeepCopy() *ServiceScaleRecommendationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceScaleRecommendationList.
func (*ServiceScaleRecommendationList) DeepCopyInto ¶
func (in *ServiceScaleRecommendationList) DeepCopyInto(out *ServiceScaleRecommendationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceScaleRecommendationList) DeepCopyObject ¶
func (in *ServiceScaleRecommendationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceScaleRecommendationLister ¶
type ServiceScaleRecommendationLister interface {
List(namespace string, selector labels.Selector) (ret []*ServiceScaleRecommendation, err error)
Get(namespace, name string) (*ServiceScaleRecommendation, error)
}
type ServiceScaleRecommendationSpec ¶
type ServiceScaleRecommendationSpec struct {
ServiceNameToRead string `json:"serviceNameToRead,omitempty"`
ZeroScaleService string `json:"zeroScaleService,omitempty"`
MinScale int32 `json:"minScale,omitempty"`
MaxScale int32 `json:"maxScale,omitempty"`
Concurrency int `json:"concurrency,omitempty"`
PrometheusURL string `json:"prometheusURL,omitempty"`
}
func (*ServiceScaleRecommendationSpec) DeepCopy ¶
func (in *ServiceScaleRecommendationSpec) DeepCopy() *ServiceScaleRecommendationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceScaleRecommendationSpec.
func (*ServiceScaleRecommendationSpec) DeepCopyInto ¶
func (in *ServiceScaleRecommendationSpec) DeepCopyInto(out *ServiceScaleRecommendationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceScaleRecommendationStatus ¶
type ServiceScaleRecommendationStatus struct {
DesiredScale *int32 `json:"desiredScale,omitempty"`
Conditions []v1.Condition `json:"conditions,omitempty"`
}
func (*ServiceScaleRecommendationStatus) DeepCopy ¶
func (in *ServiceScaleRecommendationStatus) DeepCopy() *ServiceScaleRecommendationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceScaleRecommendationStatus.
func (*ServiceScaleRecommendationStatus) DeepCopyInto ¶
func (in *ServiceScaleRecommendationStatus) DeepCopyInto(out *ServiceScaleRecommendationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceScaleRecommendationsGetter ¶
type ServiceScaleRecommendationsGetter interface {
ServiceScaleRecommendations(namespace string) ServiceScaleRecommendationInterface
}
Source Files
¶
- types.go
- zz_generated_deepcopy.go
- zz_generated_k8s_client.go
- zz_generated_scheme.go
- zz_generated_service_scale_recommendation_controller.go
- zz_generated_service_scale_recommendation_lifecycle_adapter.go