plugin

package
v0.0.0-...-c218ebb Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 19 Imported by: 11

Documentation

Index

Constants

View Source
const (
	DefaultRegistry  = "registry.gitlab.com"
	DefaultNamespace = "gitlab-org/fleeting/plugins"
)

Variables

This section is empty.

Functions

func Main

func Main(impl provider.InstanceGroup, v VersionInfo, opts ...Option)

Main can be called from plugins to setup the behaviour of a executable plugin.

func Serve

func Serve(impl provider.InstanceGroup)

Serve automatically initializes the provided InstanceGroup with JSON data coming from the Fleeting architecture in GitLab, based on `json:` tags in the struct definition.

Types

type Option

type Option func(*options) error

type VersionInfo

type VersionInfo struct {
	Name      string
	Version   string
	Revision  string
	Reference string
	BuiltAt   string
}

func (*VersionInfo) BuildInfo

func (v *VersionInfo) BuildInfo() string

func (*VersionInfo) Full

func (v *VersionInfo) Full() string

func (*VersionInfo) String

func (v *VersionInfo) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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