catalogsource

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultGRPCTimeout = 2 * time.Minute

Variables

This section is empty.

Functions

func ConnectGRPCWithTimeout

func ConnectGRPCWithTimeout(ctx context.Context, address string, timeout time.Duration) (conn *grpc.ClientConn, err error)

func EntityFromBundle

func EntityFromBundle(catsrcID string, pkg *catalogsourceapi.Package, bundle *catalogsourceapi.Bundle) (*input.Entity, error)

Types

type DefaultChannel

type DefaultChannel struct {
	DefaultChannel string `json:"defaultchannel"`
}

type RegistryClient

type RegistryClient interface {
	ListEntities(ctx context.Context, catsrc *v1alpha1.CatalogSource) ([]*input.Entity, error)
}

func NewRegistryGRPCClient

func NewRegistryGRPCClient(grpcTimeout time.Duration) RegistryClient

type UpgradeEdge

type UpgradeEdge struct {
	// possibly replaced by edge specific variablesources
	// rather than being grouped with bundle properties
	property.Channel
	Replaces  string   `json:"replaces,omitempty"`
	Skips     []string `json:"skips,omitempty"`
	SkipRange string   `json:"skipRange,omitempty"`
	Version   string   `json:"version,omitempty"`
}

Jump to

Keyboard shortcuts

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