check

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache = map[common.NameVersion]*Result

type Missing

type Missing map[common.NameVersion]common.History

func (Missing) MarshalJSON

func (n Missing) MarshalJSON() ([]byte, error)

type Option

type Option = optionutils.Option[*Options]

func LocalResourcesOnly

func LocalResourcesOnly(b ...bool) Option

func LocalSourcesOnly

func LocalSourcesOnly(b ...bool) Option

type Options

type Options struct {
	CheckLocalResources *bool
	CheckLocalSources   *bool
}

func Check

func Check(opts ...Option) *Options

Check provides a check object for checking component versions to completely available in an ocm repository. By default, it only checks the component reference closure to be in the same repository. Optionally, it is possible to check for inlined resources and sources, also.

func (*Options) ApplyTo

func (o *Options) ApplyTo(opts *Options)

func (*Options) For

func (*Options) ForId

func (a *Options) ForId(repo ocm.Repository, id common.NameVersion) (*Result, error)

type Result

type Result struct {
	Missing   Missing           `json:"missing,omitempty"`
	Resources []metav1.Identity `json:"resources,omitempty"`
	Sources   []metav1.Identity `json:"sources,omitempty"`
}

func (*Result) IsEmpty

func (r *Result) IsEmpty() bool

Jump to

Keyboard shortcuts

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