shmplugin

package
v3.16.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct{}

Plugin represents this plugin and serves as a place to attach functions to implement the Lifecycler interface

func (*Plugin) AfterInstance

func (*Plugin) AfterInstance(state *isclib.Instance) error

AfterInstance will run within the container after the instance stops

func (*Plugin) AfterStart

func (*Plugin) AfterStart(instance *iscenv.ISCInstance) error

AfterStart will run on the host after the container instance starts, receives the same flag values as start

func (*Plugin) AfterStop

func (*Plugin) AfterStop(instance *iscenv.ISCInstance) error

AfterStop will run on the host after the instance stops

func (*Plugin) BeforeInstance

func (*Plugin) BeforeInstance(state *isclib.Instance) error

BeforeInstance will run within the container before the instance successfully starts

func (*Plugin) BeforeRemove

func (*Plugin) BeforeRemove(instance *iscenv.ISCInstance) error

BeforeRemove will run on the host before the instance is removed

func (*Plugin) Copies

func (*Plugin) Copies(_ string, _ map[string]interface{}) ([]string, error)

Copies returns an array of items to copy to the container in the format "src:dest"

func (*Plugin) Environment

func (*Plugin) Environment(_ string, flags map[string]interface{}) ([]string, error)

Environment returns an array of docker API formatted environment variables (ENV_VAR=value) which will be added to the instance

func (*Plugin) Flags

func (*Plugin) Flags() (iscenv.PluginFlags, error)

Flags returns an array of additional flags to add to the start command

func (*Plugin) Key

func (*Plugin) Key() string

Key returns the unique identifier for the plugin

func (*Plugin) Main

func (plugin *Plugin) Main()

Main serves as the main entry point for the plugin

func (*Plugin) Ports

func (*Plugin) Ports(_ string, _ map[string]interface{}) ([]string, error)

Ports returns an array of additional ports to map in the format <optional hostIP>:hostPort:containerPort. You may also prefix the host port with a + to indicate it should be shifted by the port offset

func (*Plugin) Volumes

func (*Plugin) Volumes(_ string, _ map[string]interface{}) ([]string, error)

Volumes returns an array of volumes to add where the string is a standard docker volume format "src:dest:flag"

func (*Plugin) WithInstance

func (*Plugin) WithInstance(state *isclib.Instance) error

WithInstance will run within the container after the instance starts

Jump to

Keyboard shortcuts

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