cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CSV        = "csv"
	ASCIITable = "ascii_table"
	Column     = "column"
	YAML       = "yaml"
)
View Source
const (
	MetadataFieldTruncateAt = 40
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ApplyOption

type ApplyOption struct {
	FilePath string
}

type FlattenEntity

type FlattenEntity struct {
	ID          int    `oomcli:"ID"`
	Name        string `oomcli:"NAME"`
	Description string `oomcli:"DESCRIPTION,truncate"`

	CreateTime time.Time `oomcli:"CREATE-TIME,wide"`
	ModifyTime time.Time `oomcli:"MODIFY-TIME,wide"`
}

type FlattenFeature

type FlattenFeature struct {
	ID          int             `oomcli:"ID"`
	Name        string          `oomcli:"NAME"`
	Group       string          `oomcli:"GROUP"`
	Entity      string          `oomcli:"ENTITY"`
	Category    types.Category  `oomcli:"CATEGORY"`
	ValueType   types.ValueType `oomcli:"VALUE-TYPE"`
	Description string          `oomcli:"DESCRIPTION,truncate"`

	OnlineRevisionID *int      `oomcli:"ONLINE-REVISION-ID,wide"`
	CreateTime       time.Time `oomcli:"CREATE-TIME,wide"`
	ModifyTime       time.Time `oomcli:"MODIFY-TIME,wide"`
}

type FlattenGroup

type FlattenGroup struct {
	ID               int            `oomcli:"ID"`
	Name             string         `oomcli:"NAME"`
	Entity           string         `oomcli:"ENTITY"`
	Category         types.Category `oomcli:"CATEGORY"`
	SnapshotInterval time.Duration  `oomcli:"SNAPSHOT-INTERVAL"`
	Description      string         `oomcli:"DESCRIPTION,truncate"`

	OnlineRevisionID *int      `oomcli:"ONLINE-REVISION-ID,wide"`
	CreateTime       time.Time `oomcli:"CREATE-TIME,wide"`
	ModifyTime       time.Time `oomcli:"MODIFY-TIME,wide"`
}

type FlattenRevision

type FlattenRevision struct {
	ID            int    `oomcli:"ID"`
	Revision      int64  `oomcli:"REVISION"`
	Group         string `oomcli:"GROUP"`
	SnapshotTable string `oomcli:"SNAPSHOT-TABLE"`
	CdcTable      string `oomcli:"CDC-TABLE"`
	Description   string `oomcli:"DESCRIPTION,truncate"`

	Anchored   bool      `oomcli:"ANCHORED,wide"`
	CreateTime time.Time `oomcli:"CREATE-TIME,wide"`
	ModifyTime time.Time `oomcli:"MODIFY-TIME,wide"`
}

type JoinOpt

type JoinOpt struct {
	InputFilePath string
	FeatureNames  []string
}

type PushOption added in v0.1.0

type PushOption struct {
	EntityKey     string
	GroupName     string
	FeatureValues map[string]string
}

type RegisterGroupOption added in v0.1.0

type RegisterGroupOption struct {
	types.CreateGroupOpt
	// contains filtered or unexported fields
}

type Token

type Token struct {
	Value    interface{}
	Name     string
	Wide     bool
	Truncate bool
}

type TokenList

type TokenList []Token

func (TokenList) Brief

func (l TokenList) Brief() TokenList

func (TokenList) SerializeHeader

func (l TokenList) SerializeHeader(truncate bool) []string

func (TokenList) SerializeRecord

func (l TokenList) SerializeRecord(truncate bool) ([]string, error)

Jump to

Keyboard shortcuts

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