job

package
v0.0.0-...-4679d7b Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFilePath string = "/kainotomia/job"
	ConfigFileName string = "config.yml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(kubeclient kubernetes.Interface, namespace string, jobImage string) Client

func (Client) Create

func (c Client) Create(ctx context.Context, userID string, playlistID string, artists []string, token *oauth2.Token) error

func (Client) Delete

func (c Client) Delete(ctx context.Context, playlistID string) error

Delete will delete the cronjob for the playlist

type Config

type Config struct {
	PlaylistID     string
	Artists        []string
	TokenSecretRef corev1.LocalObjectReference
}

Jump to

Keyboard shortcuts

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