Back to godoc.org

Package bash

v0.0.0-...-4aa7bd8
Latest Go to latest

The latest major version is .

Published: Mar 5, 2020 | License: Apache-2.0 | Module: github.com/ChrisMcKenzie/preflight

Index

Variables

var (
	ErrInvalidLengthTasks        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTasks          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTasks = fmt.Errorf("proto: unexpected end of group")
)

func NewScriptTask

func NewScriptTask(m plugin.Meta) plugin.Task

type Script

type Script struct {
	Meta                 *plugin.Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	EvaluateScript       string       `protobuf:"bytes,2,opt,name=evaluateScript,proto3" json:"evaluateScript,omitempty"`
	ApplyScript          string       `protobuf:"bytes,3,opt,name=applyScript,proto3" json:"applyScript,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func NewPopulatedScript

func NewPopulatedScript(r randyTasks, easy bool) *Script

func (*Script) Apply

func (s *Script) Apply(ctx context.Context) (*plugin.ResultChange, error)

func (*Script) Compare

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

func (*Script) Descriptor

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

func (*Script) Equal

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

func (*Script) Evaluate

func (s *Script) Evaluate(ctx context.Context) (*plugin.ResultChange, error)

func (*Script) GetApplyScript

func (m *Script) GetApplyScript() string

func (*Script) GetEvaluateScript

func (m *Script) GetEvaluateScript() string

func (*Script) GetMeta

func (m *Script) GetMeta() *plugin.Meta

func (*Script) GoString

func (this *Script) GoString() string

func (*Script) Marshal

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

func (*Script) MarshalHCL

func (s *Script) MarshalHCL(l *ast.ObjectList) error

func (*Script) MarshalTo

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

func (*Script) MarshalToSizedBuffer

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

func (*Script) Name

func (s *Script) Name() string

func (*Script) ProtoMessage

func (*Script) ProtoMessage()

func (*Script) Reset

func (m *Script) Reset()

func (*Script) Size

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

func (*Script) String

func (this *Script) String() string

func (*Script) Unmarshal

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

func (*Script) XXX_DiscardUnknown

func (m *Script) XXX_DiscardUnknown()

func (*Script) XXX_Marshal

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

func (*Script) XXX_Merge

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

func (*Script) XXX_MessageName

func (*Script) XXX_MessageName() string

func (*Script) XXX_Size

func (m *Script) XXX_Size() int

func (*Script) XXX_Unmarshal

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier