files

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MPL-2.0 Imports: 13 Imported by: 1

Documentation

Overview

Package files contains a component for validating local files.

Index

Constants

This section is empty.

Variables

View Source
var File_waypoint_builtin_files_plugin_proto protoreflect.FileDescriptor
View Source
var Options = []sdk.Option{
	sdk.WithComponents(&Builder{}, &Registry{}),
}

Options are the SDK options to use for instantiation for the Files plugin.

Functions

This section is empty.

Types

type Builder

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

Builder validates the files in a directory or in the filesystem

func (*Builder) Build

func (b *Builder) Build(
	ctx context.Context,
	ui terminal.UI,
	src *component.Source,
) (*Files, error)

Build

func (*Builder) BuildFunc

func (b *Builder) BuildFunc() interface{}

BuildFunc implements component.Builder

func (*Builder) Config

func (b *Builder) Config() (interface{}, error)

Config implements Configurable

func (*Builder) Documentation

func (b *Builder) Documentation() (*docs.Documentation, error)

type BuilderConfig

type BuilderConfig struct{}

BuilderConfig is the configuration structure for the builder.

type Config

type Config struct {
	// Path is the path that files are stored in
	Path string `hcl:"path,attr"`
}

Config is the configuration structure for the registry.

type Files

type Files struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*Files) Descriptor deprecated

func (*Files) Descriptor() ([]byte, []int)

Deprecated: Use Files.ProtoReflect.Descriptor instead.

func (*Files) GetPath

func (x *Files) GetPath() string

func (*Files) ProtoMessage

func (*Files) ProtoMessage()

func (*Files) ProtoReflect added in v0.5.0

func (x *Files) ProtoReflect() protoreflect.Message

func (*Files) Reset

func (x *Files) Reset()

func (*Files) String

func (x *Files) String() string

type Registry

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

Registry represents access to a Files registry.

func (*Registry) Config

func (r *Registry) Config() (interface{}, error)

Config implements Configurable

func (*Registry) Documentation

func (r *Registry) Documentation() (*docs.Documentation, error)

func (*Registry) Push

func (r *Registry) Push(
	ctx context.Context,
	files *Files,
	ui terminal.UI,
) (*Files, error)

Push pushes an image to the registry.

func (*Registry) PushFunc

func (r *Registry) PushFunc() interface{}

PushFunc implements component.Registry

Jump to

Keyboard shortcuts

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