plugin

package module
v0.0.0-...-425183e Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TaskPackageIsVersion1 = true
)

Variables

View Source
var (
	ErrInvalidLengthPlugin        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPlugin          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPlugin = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Meta

type Meta struct {
	URL                  string   `protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Version              string   `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Enforce              bool     `protobuf:"varint,4,opt,name=enforce,proto3" json:"enforce,omitempty"`
	Dependencies         []string `protobuf:"bytes,5,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func NewPopulatedMeta

func NewPopulatedMeta(r randyPlugin, easy bool) *Meta

func (*Meta) Compare

func (this *Meta) Compare(that interface{}) int

func (*Meta) Descriptor

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

func (*Meta) Equal

func (this *Meta) Equal(that interface{}) bool

func (*Meta) GetDependencies

func (m *Meta) GetDependencies() []string

func (*Meta) GetEnforce

func (m *Meta) GetEnforce() bool

func (*Meta) GetName

func (m *Meta) GetName() string

func (*Meta) GetURL

func (m *Meta) GetURL() string

func (*Meta) GetVersion

func (m *Meta) GetVersion() string

func (*Meta) GoString

func (this *Meta) GoString() string

func (*Meta) Marshal

func (m *Meta) Marshal() (dAtA []byte, err error)

func (*Meta) MarshalTo

func (m *Meta) MarshalTo(dAtA []byte) (int, error)

func (*Meta) MarshalToSizedBuffer

func (m *Meta) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) Reset

func (m *Meta) Reset()

func (*Meta) Size

func (m *Meta) Size() (n int)

func (*Meta) String

func (this *Meta) String() string

func (*Meta) Unmarshal

func (m *Meta) Unmarshal(dAtA []byte) error

func (*Meta) XXX_DiscardUnknown

func (m *Meta) XXX_DiscardUnknown()

func (*Meta) XXX_Marshal

func (m *Meta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Meta) XXX_Merge

func (m *Meta) XXX_Merge(src proto.Message)

func (*Meta) XXX_MessageName

func (*Meta) XXX_MessageName() string

func (*Meta) XXX_Size

func (m *Meta) XXX_Size() int

func (*Meta) XXX_Unmarshal

func (m *Meta) XXX_Unmarshal(b []byte) error

type MockTask

type MockTask struct {
	Meta *Meta `json:"meta,omitempty"`
}

func (*MockTask) Apply

func (m *MockTask) Apply(ctx context.Context) (*ResultChange, error)

func (*MockTask) Evaluate

func (m *MockTask) Evaluate(ctx context.Context) (*ResultChange, error)

type ResultChange

type ResultChange struct{}

type Task

type Task interface {
	Evaluate(ctx context.Context) (*ResultChange, error)
	Apply(ctx context.Context) (*ResultChange, error)
}

type TaskFunc

type TaskFunc func(Meta) Task

Directories

Path Synopsis
plugins

Jump to

Keyboard shortcuts

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