api

package
v0.3.2-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GroupByImageRepository = "image_repo"
	GroupByGitRepository   = "git_repo"
	GroupByChartRepository = "chart_repo"

	OrderByFirstSeen = "first_seen"
	OrderByTag       = "tag"
)

Variables

This section is empty.

Functions

func NewHealthChecker

func NewHealthChecker() grpchealth.Checker

Types

type ByFirstSeen

type ByFirstSeen []*apiv1alpha1.Freight

func (ByFirstSeen) Len

func (a ByFirstSeen) Len() int

func (ByFirstSeen) Less

func (a ByFirstSeen) Less(i, j int) bool

func (ByFirstSeen) Swap

func (a ByFirstSeen) Swap(i, j int)

type ByTag

type ByTag []*apiv1alpha1.Freight

NOTE: sorting by tag will sort by the first container image we found or the first helm chart we found in the freight.

TODO: KR: We might want to think about whether the current sorting behavior is useful at all, given the limitations noted above.

func (ByTag) Len

func (a ByTag) Len() int

func (ByTag) Less

func (a ByTag) Less(i, j int) bool

func (ByTag) Swap

func (a ByTag) Swap(i, j int)

type Server

type Server interface {
	Serve(ctx context.Context, l net.Listener) error
}

func NewServer

func NewServer(
	cfg config.ServerConfig,
	kubeClient kubernetes.Client,
	internalClient client.Client,
) Server

Directories

Path Synopsis
types

Jump to

Keyboard shortcuts

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