Documentation ¶
Index ¶
- func SyncWithDatahub(k8sClient client.Client, conn *grpc.ClientConn) error
- type PodRepository
- func (repo *PodRepository) CreatePods(ctx context.Context, pods []*datahub_resources.Pod) error
- func (repo *PodRepository) DeletePods(ctx context.Context, arg interface{}) error
- func (repo *PodRepository) ListAlamedaPods() ([]*datahub_resources.Pod, error)
- func (repo *PodRepository) ListAlamedaPodsByAlamedaScaler(ctx context.Context, namespace, name string) ([]*datahub_resources.Pod, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SyncWithDatahub ¶ added in v0.9.166
func SyncWithDatahub(k8sClient client.Client, conn *grpc.ClientConn) error
Types ¶
type PodRepository ¶
type PodRepository struct {
// contains filtered or unexported fields
}
PodRepository creates predicted pod to datahub
func NewPodRepository ¶
func NewPodRepository(conn *grpc.ClientConn, clusterUID string) *PodRepository
NewPodRepository return PodRepository instance
func (*PodRepository) CreatePods ¶ added in v0.9.166
func (repo *PodRepository) CreatePods(ctx context.Context, pods []*datahub_resources.Pod) error
func (*PodRepository) DeletePods ¶
func (repo *PodRepository) DeletePods(ctx context.Context, arg interface{}) error
DeletePods delete pods from datahub
func (*PodRepository) ListAlamedaPods ¶
func (repo *PodRepository) ListAlamedaPods() ([]*datahub_resources.Pod, error)
func (*PodRepository) ListAlamedaPodsByAlamedaScaler ¶ added in v0.9.166
func (repo *PodRepository) ListAlamedaPodsByAlamedaScaler(ctx context.Context, namespace, name string) ([]*datahub_resources.Pod, error)
Click to show internal directories.
Click to hide internal directories.