Documentation ¶
Index ¶
- func CreateApplication(crdclientset crdclientset.Interface, app *v1alpha1.Application, ...) error
- func DeleteApplication(crdclientset crdclientset.Interface, namespace, name string) error
- func GetApplication(crdclientset crdclientset.Interface, namespace, name string) (*v1alpha1.Application, error)
- func GetApplicationObj(yamlPath string) (*v1alpha1.Application, error)
- func GetFailedHealthChecks() (string, error)
- func GetYKHost() string
- func GetYKScheme() string
- func GetYKUrl() string
- func NewApplicationClient() (*crdclientset.Clientset, error)
- func NewClient(kubeconfig string) (*crdclientset.Clientset, error)
- func UpdateApplication(crdclientset crdclientset.Interface, app *v1alpha1.Application, ...) error
- func WaitForSchedPolicy(policy string, timeout time.Duration) error
- type AllStates
- type ApplicationStates
- type NodeStates
- type RClient
- func (c *RClient) AreAllExecPodsAllotted(appID string, execPodCount int) wait.ConditionFunc
- func (c *RClient) GetAppInfo(appID string) (map[string]interface{}, error)
- func (c *RClient) GetApps() ([]map[string]interface{}, error)
- func (c *RClient) GetAppsFromSpecificQueue(queueName string) ([]map[string]interface{}, error)
- func (c *RClient) GetHealthCheck() (dao.SchedulerHealthDAOInfo, error)
- func (c *RClient) GetPartitions() (*dao.PartitionDAOInfo, error)
- func (c *RClient) GetQueues() (map[string]interface{}, error)
- func (c *RClient) GetSpecificQueueInfo(queueName string) (map[string]interface{}, error)
- func (c *RClient) ValidateSchedulerConfig(cm v1.ConfigMap) (*dao.ValidateConfResponse, error)
- func (c *RClient) WaitForAppStateTransition(appID string, state string, timeout int) error
- type ResourceUsage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateApplication ¶
func CreateApplication(crdclientset crdclientset.Interface, app *v1alpha1.Application, namespace string) error
func DeleteApplication ¶
func DeleteApplication(crdclientset crdclientset.Interface, namespace, name string) error
func GetApplication ¶
func GetApplication(crdclientset crdclientset.Interface, namespace, name string) (*v1alpha1.Application, error)
func GetApplicationObj ¶
func GetApplicationObj(yamlPath string) (*v1alpha1.Application, error)
func GetFailedHealthChecks ¶
func GetYKScheme ¶
func GetYKScheme() string
func NewApplicationClient ¶
func NewApplicationClient() (*crdclientset.Clientset, error)
func UpdateApplication ¶
func UpdateApplication(crdclientset crdclientset.Interface, app *v1alpha1.Application, namespace string) error
Types ¶
type AllStates ¶
type AllStates struct { Application *ApplicationStates Node *NodeStates }
type ApplicationStates ¶
type NodeStates ¶
type RClient ¶
func (*RClient) AreAllExecPodsAllotted ¶
func (c *RClient) AreAllExecPodsAllotted(appID string, execPodCount int) wait.ConditionFunc
func (*RClient) GetAppInfo ¶
func (*RClient) GetAppsFromSpecificQueue ¶
func (*RClient) GetHealthCheck ¶
func (c *RClient) GetHealthCheck() (dao.SchedulerHealthDAOInfo, error)
func (*RClient) GetPartitions ¶
func (c *RClient) GetPartitions() (*dao.PartitionDAOInfo, error)
func (*RClient) GetSpecificQueueInfo ¶
func (*RClient) ValidateSchedulerConfig ¶
type ResourceUsage ¶
type ResourceUsage struct {
// contains filtered or unexported fields
}
func (*ResourceUsage) GetMemory ¶
func (r *ResourceUsage) GetMemory() int64
func (*ResourceUsage) GetVCPU ¶
func (r *ResourceUsage) GetVCPU() int64
func (*ResourceUsage) ParseResourceUsage ¶
func (r *ResourceUsage) ParseResourceUsage(resource map[string]interface{})
Click to show internal directories.
Click to hide internal directories.