pkg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	strings.Builder
}

func (*Command) Build

func (c *Command) Build() string

func (*Command) FieldConfig

func (c *Command) FieldConfig(field, value string) *Command

type MinioClient

type MinioClient struct {
	*minio.Client
}

func AutoConnMinio

func AutoConnMinio(endpoints, accessKeyID, secretAccessKey string) (*MinioClient, error)

func (*MinioClient) TracFile added in v0.2.1

func (m *MinioClient) TracFile(bucket, prefix string) error

TracFile 清理 minio 中 ha 相关的文件 ,从而达到 flink 可用状态 逻辑如下: 1、如果没有 bucket ,要创建 2、如果有 bucket,要删除指定路径下的 object ,然后创建 2.1、清除逻辑参考 mc 源码 (https://github.com/minio/mc/blob/RELEASE.2022-02-23T03-15-59Z/cmd/rb-main.go#L153) ,批量删除后清除空 bucket

type ZooKeeper

type ZooKeeper struct {
	*zk.Conn
}

func AutoConnZk

func AutoConnZk(quorum string) (*ZooKeeper, error)

func (*ZooKeeper) AutoDelete

func (zoo *ZooKeeper) AutoDelete(path string) error

TODO: 递归删除

Jump to

Keyboard shortcuts

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