grim/convey
Clone
Summary
Browse
Changes
Graph
Merge the redux branch into default.
2021-12-20, Gary Kramlich
6b1dbda836d9
Merge the redux branch into default.
This officials abandons the 0.14.0 release and moves right on to 0.15.0 which
includes replacing docker with podman and simplifying many things.
package
docker
import
(
"fmt"
log
"github.com/sirupsen/logrus"
"keep.imfreedom.org/grim/convey/environment"
"keep.imfreedom.org/grim/convey/runtime"
"keep.imfreedom.org/grim/convey/tasks"
"keep.imfreedom.org/grim/convey/yaml"
)
type
Import
struct
{
Files
yaml
.
StringOrSlice
`yaml:"files"`
realImport
*
tasks
.
Import
}
// New creates a new Import task.
func
(
i
*
Import
)
New
()
tasks
.
Task
{
return
&
Import
{}
}
// Valid validates the export task.
func
(
i
*
Import
)
Valid
()
error
{
i
.
realImport
=
&
tasks
.
Import
{
Files
:
i
.
Files
,
}
return
i
.
realImport
.
Valid
()
}
// Executes the task
func
(
i
*
Import
)
Execute
(
name
string
,
logger
*
log
.
Entry
,
env
environment
.
Environment
,
rt
*
runtime
.
Runtime
)
error
{
return
i
.
realImport
.
Execute
(
name
,
logger
,
env
,
rt
)
}
func
(
i
*
Import
)
Deprecated
()
error
{
return
fmt
.
Errorf
(
"docker/import has been deprecated in favor of convey/import since 0.15.0"
)
}