artifacts

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveClusterLogs

func ArchiveClusterLogs(s3Client *S3Client, crID uint, uuid string, topos *deploy.Topology) error

ArchiveClusterLogs ...

func ArchiveMonitorData

func ArchiveMonitorData(s3Client *S3Client, crID uint, uuid string, topos *deploy.Topology) (err error)

ArchiveMonitorData archives prometheus data and grafana configuration(including dashboards and provisioning)

func ArchiveWorkloadData

func ArchiveWorkloadData(s3Client *S3Client, dockerExecutor *util.DockerExecutor, containerID string, crID uint, uuid string, srcPath string) (err error)

ArchiveWorkloadData archives the workload data locating on srcPath in workload container

func ArchiveWorkloadRuntimeLog

func ArchiveWorkloadRuntimeLog(
	s3Client *S3Client,
	crID uint,
	out *bytes.Buffer,
	uuid string) error

ArchiveWorkloadRuntimeLog ...

func ArtifactDownloadPath

func ArtifactDownloadPath(crID uint) string

ArtifactDownloadPath builds artifact download dir

func ArtifactPath

func ArtifactPath(crID uint) string

ArtifactPath builds artifact dir

func RebuildMonitoringOnK8s

func RebuildMonitoringOnK8s(crID uint, uuid string) (err error)

RebuildMonitoringOnK8s rebuilds monitoring on K8s cluster

Types

type S3Client

type S3Client struct {
	*minio.Client
}

S3Client encapsulate minio-go sdk

func NewS3Client

func NewS3Client() (*S3Client, error)

NewS3Client creates an S3client instance

Jump to

Keyboard shortcuts

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