Documentation ¶
Index ¶
- Constants
- Variables
- func New() ppi.AccessMethod
- type AccessMethod
- func (a *AccessMethod) ComposeAccessSpecification(p ppi.Plugin, opts ppi.Config, config ppi.Config) error
- func (a *AccessMethod) Decode(data []byte, unmarshaler runtime.Unmarshaler) (runtime.TypedObject, error)
- func (a *AccessMethod) Options() []options.OptionType
- func (a *AccessMethod) Reader(p ppi.Plugin, spec ppi.AccessSpec, creds credentials.Credentials) (io.ReadCloser, error)
- func (a *AccessMethod) ValidateSpecification(p ppi.Plugin, spec ppi.AccessSpec) (*ppi.AccessSpecInfo, error)
- type AccessSpec
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 (*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 (a *AccessMethod) Reader(p ppi.Plugin, spec ppi.AccessSpec, creds credentials.Credentials) (io.ReadCloser, error)
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"` }
Click to show internal directories.
Click to hide internal directories.