runtime

package
v25.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 PluginPrivilege

type PluginPrivilege struct {
	Name        string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Value       []string `protobuf:"bytes,3,rep,name=value,proto3" json:"value,omitempty"`
}

PluginPrivilege describes a permission the user has to accept upon installing a plugin.

func (*PluginPrivilege) Descriptor

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

func (*PluginPrivilege) GetDescription

func (m *PluginPrivilege) GetDescription() string

func (*PluginPrivilege) GetName

func (m *PluginPrivilege) GetName() string

func (*PluginPrivilege) GetValue

func (m *PluginPrivilege) GetValue() []string

func (*PluginPrivilege) Marshal

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

func (*PluginPrivilege) MarshalTo

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

func (*PluginPrivilege) MarshalToSizedBuffer

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

func (*PluginPrivilege) ProtoMessage

func (*PluginPrivilege) ProtoMessage()

func (*PluginPrivilege) Reset

func (m *PluginPrivilege) Reset()

func (*PluginPrivilege) Size

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

func (*PluginPrivilege) String

func (m *PluginPrivilege) String() string

func (*PluginPrivilege) Unmarshal

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

func (*PluginPrivilege) XXX_DiscardUnknown

func (m *PluginPrivilege) XXX_DiscardUnknown()

func (*PluginPrivilege) XXX_Marshal

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

func (*PluginPrivilege) XXX_Merge

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

func (*PluginPrivilege) XXX_Size

func (m *PluginPrivilege) XXX_Size() int

func (*PluginPrivilege) XXX_Unmarshal

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

type PluginSpec

type PluginSpec struct {
	Name       string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Remote     string             `protobuf:"bytes,2,opt,name=remote,proto3" json:"remote,omitempty"`
	Privileges []*PluginPrivilege `protobuf:"bytes,3,rep,name=privileges,proto3" json:"privileges,omitempty"`
	Disabled   bool               `protobuf:"varint,4,opt,name=disabled,proto3" json:"disabled,omitempty"`
	Env        []string           `protobuf:"bytes,5,rep,name=env,proto3" json:"env,omitempty"`
}

PluginSpec defines the base payload which clients can specify for creating a service with the plugin runtime.

func (*PluginSpec) Descriptor

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

func (*PluginSpec) GetDisabled

func (m *PluginSpec) GetDisabled() bool

func (*PluginSpec) GetEnv

func (m *PluginSpec) GetEnv() []string

func (*PluginSpec) GetName

func (m *PluginSpec) GetName() string

func (*PluginSpec) GetPrivileges

func (m *PluginSpec) GetPrivileges() []*PluginPrivilege

func (*PluginSpec) GetRemote

func (m *PluginSpec) GetRemote() string

func (*PluginSpec) Marshal

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

func (*PluginSpec) MarshalTo

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

func (*PluginSpec) MarshalToSizedBuffer

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

func (*PluginSpec) ProtoMessage

func (*PluginSpec) ProtoMessage()

func (*PluginSpec) Reset

func (m *PluginSpec) Reset()

func (*PluginSpec) Size

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

func (*PluginSpec) String

func (m *PluginSpec) String() string

func (*PluginSpec) Unmarshal

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

func (*PluginSpec) XXX_DiscardUnknown

func (m *PluginSpec) XXX_DiscardUnknown()

func (*PluginSpec) XXX_Marshal

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

func (*PluginSpec) XXX_Merge

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

func (*PluginSpec) XXX_Size

func (m *PluginSpec) XXX_Size() int

func (*PluginSpec) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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