Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) FindResourceByName(resourceType string, resourceName string) (*CommonResourceInfo, error)
- func (c *Client) GetClusterSize() (int, error)
- func (c *Client) ScaleResource(resourceType string, resourceName string, replicas int32) error
- func (c *Client) ValidateResourceType(resourceType string) (string, error)
- type CommonResourceInfo
Constants ¶
View Source
const ( // ResourceTypeDeployment . ResourceTypeDeployment = "deployment" // ResourceTypeStatefulSet . ResourceTypeStatefulSet = "stateful set" // ResourceTypeReplicaSet . ResourceTypeReplicaSet = "replica set" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client struct
func (*Client) FindResourceByName ¶
func (c *Client) FindResourceByName(resourceType string, resourceName string) (*CommonResourceInfo, error)
FindResourceByName . Finds resource by name Returns k8s resource specs (name could be different from the one specified by the user)
func (*Client) ScaleResource ¶
ScaleResource .
type CommonResourceInfo ¶
CommonResourceInfo - we use this type to combine specs of different resources
Click to show internal directories.
Click to hide internal directories.