api

package
v0.0.0-...-69eaee5 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package api provides APIs for plugins relate formats

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByName

type ByName []*Plugin

ByName implements the sort.Interface interface for sorting list of plugins

func (ByName) Len

func (pl ByName) Len() int

func (ByName) Less

func (pl ByName) Less(i, j int) bool

func (ByName) Swap

func (pl ByName) Swap(i, j int)

type ByPluginMetadataName

type ByPluginMetadataName []*PluginMetadata

ByPluginMetadataName implements the sort.Interface interface for sorting list of plugins

func (ByPluginMetadataName) Len

func (pl ByPluginMetadataName) Len() int

func (ByPluginMetadataName) Less

func (pl ByPluginMetadataName) Less(i, j int) bool

func (ByPluginMetadataName) Swap

func (pl ByPluginMetadataName) Swap(i, j int)

type ByPluginName

type ByPluginName []*Plugin

ByPluginName implements the sort.Interface interface for sorting list of plugins

func (ByPluginName) Len

func (pl ByPluginName) Len() int

func (ByPluginName) Less

func (pl ByPluginName) Less(i, j int) bool

func (ByPluginName) Swap

func (pl ByPluginName) Swap(i, j int)

type Graph

type Graph struct {
	Nodes                []*Graph_Node `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Graph) Descriptor

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

func (*Graph) GetNodes

func (m *Graph) GetNodes() []*Graph_Node

func (*Graph) ProtoMessage

func (*Graph) ProtoMessage()

func (*Graph) Reset

func (m *Graph) Reset()

func (*Graph) String

func (m *Graph) String() string

func (*Graph) XXX_DiscardUnknown

func (m *Graph) XXX_DiscardUnknown()

func (*Graph) XXX_Marshal

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

func (*Graph) XXX_Merge

func (dst *Graph) XXX_Merge(src proto.Message)

func (*Graph) XXX_Size

func (m *Graph) XXX_Size() int

func (*Graph) XXX_Unmarshal

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

type Graph_Node

type Graph_Node struct {
	Plugin               *Plugin       `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
	Dependencies         []*Graph_Node `protobuf:"bytes,3,rep,name=dependencies" json:"dependencies,omitempty"`
	OptionalDependencies []*Graph_Node `protobuf:"bytes,4,rep,name=optional_dependencies,json=optionalDependencies" json:"optional_dependencies,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Graph_Node) Descriptor

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

func (*Graph_Node) GetDependencies

func (m *Graph_Node) GetDependencies() []*Graph_Node

func (*Graph_Node) GetOptionalDependencies

func (m *Graph_Node) GetOptionalDependencies() []*Graph_Node

func (*Graph_Node) GetPlugin

func (m *Graph_Node) GetPlugin() *Plugin

func (*Graph_Node) ProtoMessage

func (*Graph_Node) ProtoMessage()

func (*Graph_Node) Reset

func (m *Graph_Node) Reset()

func (*Graph_Node) String

func (m *Graph_Node) String() string

func (*Graph_Node) XXX_DiscardUnknown

func (m *Graph_Node) XXX_DiscardUnknown()

func (*Graph_Node) XXX_Marshal

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

func (*Graph_Node) XXX_Merge

func (dst *Graph_Node) XXX_Merge(src proto.Message)

func (*Graph_Node) XXX_Size

func (m *Graph_Node) XXX_Size() int

func (*Graph_Node) XXX_Unmarshal

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

type Jenkins

type Jenkins struct {
	Version              string            `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
	Plugins              []*PluginMetadata `protobuf:"bytes,2,rep,name=plugins" json:"plugins,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Jenkins) Descriptor

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

func (*Jenkins) GetPlugins

func (m *Jenkins) GetPlugins() []*PluginMetadata

func (*Jenkins) GetVersion

func (m *Jenkins) GetVersion() string

func (*Jenkins) ProtoMessage

func (*Jenkins) ProtoMessage()

func (*Jenkins) Reset

func (m *Jenkins) Reset()

func (*Jenkins) String

func (m *Jenkins) String() string

func (*Jenkins) XXX_DiscardUnknown

func (m *Jenkins) XXX_DiscardUnknown()

func (*Jenkins) XXX_Marshal

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

func (*Jenkins) XXX_Merge

func (dst *Jenkins) XXX_Merge(src proto.Message)

func (*Jenkins) XXX_Size

func (m *Jenkins) XXX_Size() int

func (*Jenkins) XXX_Unmarshal

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

type Plugin

type Plugin struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Version              string   `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
	Requester            string   `protobuf:"bytes,3,opt,name=requester" json:"requester,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Plugin) Descriptor

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

func (*Plugin) Filename

func (p *Plugin) Filename() string

Filename returns the filename string for a plugin

func (*Plugin) GetName

func (m *Plugin) GetName() string

func (*Plugin) GetRequester

func (m *Plugin) GetRequester() string

func (*Plugin) GetVersion

func (m *Plugin) GetVersion() string

func (*Plugin) Identifier

func (p *Plugin) Identifier() string

Identifier returns the identifier string for a plugin

func (*Plugin) ProtoMessage

func (*Plugin) ProtoMessage()

func (*Plugin) Reset

func (m *Plugin) Reset()

func (*Plugin) String

func (m *Plugin) String() string

func (*Plugin) XXX_DiscardUnknown

func (m *Plugin) XXX_DiscardUnknown()

func (*Plugin) XXX_Marshal

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

func (*Plugin) XXX_Merge

func (dst *Plugin) XXX_Merge(src proto.Message)

func (*Plugin) XXX_Size

func (m *Plugin) XXX_Size() int

func (*Plugin) XXX_Unmarshal

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

type PluginMetadata

type PluginMetadata struct {
	FullName             string    `protobuf:"bytes,1,opt,name=full_name,json=fullName" json:"full_name,omitempty"`
	Plugin               *Plugin   `protobuf:"bytes,2,opt,name=plugin" json:"plugin,omitempty"`
	Dependencies         []*Plugin `protobuf:"bytes,3,rep,name=dependencies" json:"dependencies,omitempty"`
	OptionalDependencies []*Plugin `protobuf:"bytes,4,rep,name=optional_dependencies,json=optionalDependencies" json:"optional_dependencies,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*PluginMetadata) Descriptor

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

func (*PluginMetadata) GetDependencies

func (m *PluginMetadata) GetDependencies() []*Plugin

func (*PluginMetadata) GetFullName

func (m *PluginMetadata) GetFullName() string

func (*PluginMetadata) GetOptionalDependencies

func (m *PluginMetadata) GetOptionalDependencies() []*Plugin

func (*PluginMetadata) GetPlugin

func (m *PluginMetadata) GetPlugin() *Plugin

func (*PluginMetadata) ProtoMessage

func (*PluginMetadata) ProtoMessage()

func (*PluginMetadata) Reset

func (m *PluginMetadata) Reset()

func (*PluginMetadata) String

func (m *PluginMetadata) String() string

func (*PluginMetadata) XXX_DiscardUnknown

func (m *PluginMetadata) XXX_DiscardUnknown()

func (*PluginMetadata) XXX_Marshal

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

func (*PluginMetadata) XXX_Merge

func (dst *PluginMetadata) XXX_Merge(src proto.Message)

func (*PluginMetadata) XXX_Size

func (m *PluginMetadata) XXX_Size() int

func (*PluginMetadata) XXX_Unmarshal

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

type PluginsRegistry

type PluginsRegistry struct {
	Plugins              []*Plugin `protobuf:"bytes,1,rep,name=plugins" json:"plugins,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*PluginsRegistry) Descriptor

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

func (*PluginsRegistry) GetPlugins

func (m *PluginsRegistry) GetPlugins() []*Plugin

func (*PluginsRegistry) ProtoMessage

func (*PluginsRegistry) ProtoMessage()

func (*PluginsRegistry) Reset

func (m *PluginsRegistry) Reset()

func (*PluginsRegistry) String

func (m *PluginsRegistry) String() string

func (*PluginsRegistry) XXX_DiscardUnknown

func (m *PluginsRegistry) XXX_DiscardUnknown()

func (*PluginsRegistry) XXX_Marshal

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

func (*PluginsRegistry) XXX_Merge

func (dst *PluginsRegistry) XXX_Merge(src proto.Message)

func (*PluginsRegistry) XXX_Size

func (m *PluginsRegistry) XXX_Size() int

func (*PluginsRegistry) XXX_Unmarshal

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

type Project

type Project struct {
	Dependencies         map[string]string `` /* 144-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

Project represents a file that lists the packages your project depends on

func (*Project) Descriptor

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

func (*Project) GetDependencies

func (m *Project) GetDependencies() map[string]string

func (*Project) GetPluginsRegistry

func (p *Project) GetPluginsRegistry() *PluginsRegistry

GetPluginsRegistry returns a PluginsRegistry structure from a Project one.

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) Reset

func (m *Project) Reset()

func (*Project) String

func (m *Project) String() string

func (*Project) XXX_DiscardUnknown

func (m *Project) XXX_DiscardUnknown()

func (*Project) XXX_Marshal

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

func (*Project) XXX_Merge

func (dst *Project) XXX_Merge(src proto.Message)

func (*Project) XXX_Size

func (m *Project) XXX_Size() int

func (*Project) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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