controller

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

README

This directory contains code for the registry controller command. This is currently in experimental stage.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateManifest added in v0.4.5

func ValidateManifest(parent string, manifest *controller.Manifest) []error

Types

type Action added in v0.3.1

type Action struct {
	Command           string
	GeneratedResource string
	RequiresReceipt   bool
}

func ProcessManifest

func ProcessManifest(
	ctx context.Context,
	client listingClient,
	projectID string,
	manifest *controller.Manifest,
	maxActions int) []*Action

type ExecCommandTask

type ExecCommandTask struct {
	Action *Action
	TaskID string
}

func (*ExecCommandTask) Run

func (task *ExecCommandTask) Run(ctx context.Context) error

func (*ExecCommandTask) String

func (task *ExecCommandTask) String() string

type RegistryLister added in v0.5.5

type RegistryLister struct {
	RegistryClient connection.RegistryClient
}

func (*RegistryLister) ListAPIs added in v0.5.5

func (r *RegistryLister) ListAPIs(ctx context.Context, api names.Api, filter string, handler visitor.ApiHandler) error

func (*RegistryLister) ListArtifacts added in v0.5.5

func (r *RegistryLister) ListArtifacts(ctx context.Context, artifact names.Artifact, filter string, contents bool, handler visitor.ArtifactHandler) error

func (*RegistryLister) ListSpecs added in v0.5.5

func (r *RegistryLister) ListSpecs(ctx context.Context, spec names.Spec, filter string, handler visitor.SpecHandler) error

func (*RegistryLister) ListVersions added in v0.5.5

func (r *RegistryLister) ListVersions(ctx context.Context, version names.Version, filter string, handler visitor.VersionHandler) error

Jump to

Keyboard shortcuts

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