accessmethods

package
v2.0.0-...-98cc131 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAME    = "demo"
	VERSION = "v1"
)
View Source
const (
	OPT_PATH  = "path"
	OPT_MEDIA = "mediaType"
)

Variables

View Source
var PathOption = options.NewStringOptionType("accessPath", "path in temp repository")

Functions

func New

func New() ppi.AccessMethod

Types

type AccessMethod

type AccessMethod struct {
	ppi.AccessMethodBase
}

func (*AccessMethod) ComposeAccessSpecification

func (a *AccessMethod) ComposeAccessSpecification(p ppi.Plugin, opts ppi.Config, config ppi.Config) error

func (*AccessMethod) Decode

func (a *AccessMethod) Decode(data []byte, unmarshaler runtime.Unmarshaler) (runtime.TypedObject, error)

func (*AccessMethod) Options

func (a *AccessMethod) Options() []options.OptionType

func (*AccessMethod) Reader

func (*AccessMethod) ValidateSpecification

func (a *AccessMethod) ValidateSpecification(p ppi.Plugin, spec ppi.AccessSpec) (*ppi.AccessSpecInfo, error)

type AccessSpec

type AccessSpec struct {
	runtime.ObjectVersionedType `json:",inline"`

	Path      string `json:"path"`
	MediaType string `json:"mediaType,omitempty"`
}

Jump to

Keyboard shortcuts

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