types

package
v0.0.0-...-9685ac1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendOptions

type BackendOptions struct {
	BackendStorageKind string

	// Settings for aws storage
	AwsS3Host      string
	AwsS3AccessKey string
	AwsS3SecretKey string
	AwsS3Region    string
	AwsS3Bucket    string

	// Settings for local storage
	LocalPath string
}

type Metadata

type Metadata struct {
	GCTimeStamp   *time.Time `json:"gcTimeStamp"`
	DownloadCount int        `json:"donwloadCount"`
}

type Storage

type Storage interface {
	GetCoreFiles(namespace string, pod string, container string) (string, error)
	CleanCoreFiles(namespace string, pod string, container string) error
	CoreFilesExist(namespace string, pod string, container string) (bool, error)
}

Jump to

Keyboard shortcuts

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