k8s

package
v0.0.0-...-b0be77f Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8s

type K8s interface {
	// GetPendingRanges returns the ranges for start and end for the given chunkSize which can be parallelized.
	GetPendingRanges(dataset, table string, chunkSize int64) ([]Range, error)
	// CreateJob creates a job in the given namespace within the k8s cluster.
	CreateJob(r Range) error
}

K8s is the interface for the k8s client

func New

func New(phren pkg.Phren, tlog pkg.TLog, hostname, dataset, table, namespace string) (K8s, error)

New returns a new instance of K8s

type Range

type Range struct {
	From int64
	To   int64
}

Jump to

Keyboard shortcuts

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