docker

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2017 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

* Convey * Copyright 2016-2017 Gary Kramlich <grim@reaperworld.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.

* Convey * Copyright 2016-2017 Gary Kramlich <grim@reaperworld.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.

* Convey * Copyright 2016-2017 Gary Kramlich <grim@reaperworld.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.

* Convey * Copyright 2016-2017 Gary Kramlich <grim@reaperworld.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.

* Convey * Copyright 2016-2017 Gary Kramlich <grim@reaperworld.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.

* Convey * Copyright 2016-2017 Gary Kramlich <grim@reaperworld.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.

* Convey * Copyright 2016-2017 Gary Kramlich <grim@reaperworld.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.

* Convey * Copyright 2016-2017 Gary Kramlich <grim@reaperworld.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.

* Convey * Copyright 2016-2017 Gary Kramlich <grim@reaperworld.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.

* Convey * Copyright 2016-2017 Gary Kramlich <grim@reaperworld.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.

* Convey * Copyright 2016-2017 Gary Kramlich <grim@reaperworld.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

View Source
var (
	Tasks = map[string]tasks.Task{
		"build":  &Build{},
		"export": &Export{},
		"import": &Import{},
		"login":  &Login{},
		"logout": &Logout{},
		"pull":   &Pull{},
		"push":   &Push{},
		"remove": &Remove{},
		"run":    &Run{},
		"tag":    &Tag{},
	}
)

Functions

This section is empty.

Types

type Build

type Build struct {
	Dockerfile string   `yaml:"dockerfile"`
	Files      []string `yaml:"files"`
	Tag        string   `yaml:"tag"`
}

func (*Build) Execute

func (b *Build) Execute(name string, ws *workspace.Workspace, logger *gomol.LogAdapter, env []string, opts *options.Options) error

func (*Build) New

func (b *Build) New() tasks.Task

func (*Build) Valid

func (b *Build) Valid() error

type Export

type Export struct {
	Files []string `yaml:"files"`
}

func (*Export) Execute

func (e *Export) Execute(name string, ws *workspace.Workspace, logger *gomol.LogAdapter, env []string, opts *options.Options) error

func (*Export) New

func (e *Export) New() tasks.Task

func (*Export) Valid

func (e *Export) Valid() error

type Import

type Import struct {
	Files []string `yaml:"files"`
}

func (*Import) Execute

func (i *Import) Execute(name string, ws *workspace.Workspace, logger *gomol.LogAdapter, env []string, opts *options.Options) error

func (*Import) New

func (i *Import) New() tasks.Task

func (*Import) Valid

func (i *Import) Valid() error

type Login

type Login struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	Server   string `yaml:"server"`
}

func (*Login) Execute

func (l *Login) Execute(name string, ws *workspace.Workspace, logger *gomol.LogAdapter, env []string, opts *options.Options) error

func (*Login) New

func (l *Login) New() tasks.Task

func (*Login) Valid

func (l *Login) Valid() error

type Logout

type Logout struct {
	Server string `yaml:"server"`
}

func (*Logout) Execute

func (l *Logout) Execute(name string, ws *workspace.Workspace, logger *gomol.LogAdapter, env []string, opts *options.Options) error

func (*Logout) New

func (l *Logout) New() tasks.Task

func (*Logout) Valid

func (l *Logout) Valid() error

type Pull

type Pull struct {
	Image string `yaml:"image"`
}

func (*Pull) Execute

func (p *Pull) Execute(name string, ws *workspace.Workspace, logger *gomol.LogAdapter, env []string, opts *options.Options) error

func (*Pull) New

func (p *Pull) New() tasks.Task

func (*Pull) Valid

func (p *Pull) Valid() error

type Push

type Push struct {
	Image string `yaml:"image"`
}

func (*Push) Execute

func (p *Push) Execute(name string, ws *workspace.Workspace, logger *gomol.LogAdapter, env []string, opts *options.Options) error

func (*Push) New

func (p *Push) New() tasks.Task

func (*Push) Valid

func (p *Push) Valid() error

type Remove

type Remove struct {
	Image string `yaml:"image"`
}

func (*Remove) Execute

func (r *Remove) Execute(name string, ws *workspace.Workspace, logger *gomol.LogAdapter, env []string, opts *options.Options) error

func (*Remove) New

func (r *Remove) New() tasks.Task

func (*Remove) Valid

func (r *Remove) Valid() error

type Run

type Run struct {
	Command     string   `yaml:"command"`
	EntryPoint  string   `yaml:"entrypoint"`
	Environment []string `yaml:"environment"`
	Image       string   `yaml:"image"`
	WorkDir     string   `yaml:"workdir"`
	WorkSpace   string   `yaml:"workspace"`
	Script      []string `yaml:"script"`
	Shell       string   `yaml:"shell" default:"/bin/sh"`
}

func (*Run) Execute

func (r *Run) Execute(name string, ws *workspace.Workspace, logger *gomol.LogAdapter, env []string, opts *options.Options) error

func (*Run) New

func (r *Run) New() tasks.Task

func (*Run) Valid

func (r *Run) Valid() error

type Tag

type Tag struct {
	Source      string `yaml:"source"`
	Destination string `yaml:"destination"`
}

func (*Tag) Execute

func (t *Tag) Execute(name string, ws *workspace.Workspace, logger *gomol.LogAdapter, env []string, opts *options.Options) error

func (*Tag) New

func (t *Tag) New() tasks.Task

func (*Tag) Valid

func (t *Tag) Valid() error

Jump to

Keyboard shortcuts

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