definition

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compose

type Compose struct {
	Version  string   `yaml:"version"`
	Services Services `yaml:"services"`
}

Compose type

func GetRedis

func GetRedis(image, volume, port, restart string) *Compose

GetRedis ..

func (*Compose) ToString

func (c *Compose) ToString() (string, error)

ToString converts type to string

type Redis

type Redis struct {
	Image   string   `yaml:"image"`
	Volumes []string `yaml:"volumes"`
	Ports   []string `yaml:"ports"`
	Restart string   `yaml:"restart"`
}

Redis type

type Services

type Services struct {
	Redis Redis `yaml:"redis"`
}

Services type

Jump to

Keyboard shortcuts

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