internal

package
v0.0.0-...-b25b198 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package internal contains the implementation of the TKR Resolver.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

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

func NewResolver

func NewResolver() *Resolver

func (*Resolver) Add

func (r *Resolver) Add(objects ...interface{})

Add pre-validated TKRs and OSImages to the Resolver cache. Pre-req: invalid TKRs and OSImages MUST have status condition Valid=False. Invalid objects would have Kubernetes versions inconsistent between a TKR and its OSImages, TKR and Kubernetes versions that would not parse successfully.

func (*Resolver) Get

func (r *Resolver) Get(name string, obj interface{}) interface{}

func (*Resolver) Remove

func (r *Resolver) Remove(objects ...interface{})

Remove TKRs and OSImages from the Resolver cache.

func (*Resolver) Resolve

func (r *Resolver) Resolve(query data.Query) data.Result

Jump to

Keyboard shortcuts

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