Documentation
¶
Index ¶
Constants ¶
View Source
const ( ControllerPort = "8443" ControllerHost = "localhost" )
View Source
const (
COREFILE_DIR = "/corefile"
)
Variables ¶
View Source
var (
DEFAULT_CFG_PATH = "/etc/config/watcher.yaml"
)
Functions ¶
func NewCoreFileServiceClient ¶
func NewCoreFileServiceClient() (pb.CoreFileServiceClient, *grpc.ClientConn)
func WatchCorefile ¶
func WatchCorefile()
Types ¶
type Config ¶
type Config struct {
StorageConfig struct {
Enabled bool `yaml:"enabled" env-default:"true"`
// default storage protocol: s3
Protocol string `yaml:"protocol" env-default:"s3s"`
S3AccessKeyID string `yaml:"s3AccesskeyID"`
S3SecretAccessKey string `yaml:"s3SecretAccessKey"`
S3Region string `yaml:"s3Region"`
S3Bucket string `yaml:"S3Bucket"`
S3Endpoint string `yaml:"S3Endpoint"`
StoreDir string `yaml:"StoreDir"`
// presigned url expire time(by seconds)
PresignedURLExpireSeconds int `yaml:"PresignedURLExpireSeconds"`
DeleteLocalCorefile bool `yaml:"deleteLocalCorefile"`
} `yaml:"StorageConfig"`
Gc bool `yaml:"gc" env-default:"false"`
GcType string `yaml:"gc_type" env-default:"rm"`
}
Click to show internal directories.
Click to hide internal directories.