podpreset

package
v0.0.0-...-4bc6627 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeName = "PodPreset"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter interface {
	Filter(ctx context.Context, list v1alpha1.PodPresetList, labels map[string]string) ([]v1alpha1.PodPreset, error)
}

type Lister

type Lister interface {
	// list podpreset from given namespace
	List(namespace string) (v1alpha1.PodPresetList, error)
}

type Merger

type Merger interface {
	Merge(ctx context.Context, podPresets []v1alpha1.PodPreset) ([]v1alpha1.Env, error)
}

type PodPresetService

type PodPresetService interface {
	Lister
	Filter
	Merger
}

func NewService

func NewService(client client.Client) PodPresetService

type Service

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

func (*Service) Filter

func (s *Service) Filter(ctx context.Context, list v1alpha1.PodPresetList, filter map[string]string) ([]v1alpha1.PodPreset, error)

func (*Service) List

func (s *Service) List(namespace string) (v1alpha1.PodPresetList, error)

func (*Service) Merge

func (s *Service) Merge(ctx context.Context, podPresets []v1alpha1.PodPreset) ([]v1alpha1.Env, error)

Jump to

Keyboard shortcuts

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