aboutsummaryrefslogtreecommitdiff
path: root/pkg/bindings/play/play.go
blob: d5d649135390e43ad0bb3dc2fb79d03e01d5970a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package play

import (
	"context"
	"io"

	"github.com/containers/podman/v4/pkg/bindings/kube"
	"github.com/containers/podman/v4/pkg/domain/entities"
)

type KubeOptions = kube.PlayOptions

func Kube(ctx context.Context, path string, options *KubeOptions) (*entities.PlayKubeReport, error) {
	return kube.Play(ctx, path, options)
}

func KubeWithBody(ctx context.Context, body io.Reader, options *KubeOptions) (*entities.PlayKubeReport, error) {
	return kube.PlayWithBody(ctx, body, options)
}

func Down(ctx context.Context, path string) (*entities.PlayKubeReport, error) {
	return kube.Down(ctx, path)
}

func DownWithBody(ctx context.Context, body io.Reader) (*entities.PlayKubeReport, error) {
	return kube.DownWithBody(ctx, body)
}