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 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
Click to show internal directories.
Click to hide internal directories.