plugin

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMount

func AddMount(c *corev1.Container, name string, ro bool, path string)

func PodContainerPort

func PodContainerPort(port, defaultPort int32) int32

func PodImage

func PodImage(image, version, defImage, defVersion string) string

Types

type CloudPlugin

type CloudPlugin interface {
	SyncCloud(string, *atlas.DatabaseServer) error
}

CloudPlugin is for instances created by an IaaS platform

type DatabasePlugin

type DatabasePlugin interface {
	SyncDatabase(*atlas.Database, string) (string, error)
	Dsn(string, string, *atlas.Database, *atlas.DatabaseServer) string
}

type Plugin

type Plugin interface {
	Name() string
	DatabasePlugin() DatabasePlugin
}

Plugin should be implemented by all plugins

type PodPlugin

type PodPlugin interface {
	CreatePod(string, *atlas.DatabaseServer) *corev1.Pod
	DiffPod(string, *atlas.DatabaseServer, *corev1.Pod) string
}

PodPlugin is for instances backed by a Pod Intended primarily for dev, not prod

Jump to

Keyboard shortcuts

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