Documentation ¶
Index ¶
- func BuildConfigRequest(request *lbot.ConfigRequest) *proto.ConfigRequest
- func CheckPromptErr(err error)
- func GenerateConfigWorkload() (err error)
- func GetBooleanInput(label string) bool
- func GetDurationInput(label string, defaultValue string) *time.Duration
- func GetNumberInput(label string, defaultValue string) int
- func GetSelectInput(label string, options []string, ops ...choose.Option) string
- func GetSelectWithDescriptionInput(label string, options []choose.Choice, ops ...choose.Option) string
- func GetStringInput(label string, defaultValue string) string
- func GetWorkloadConfig(conn grpc.ClientConnInterface) (err error)
- func SetWorkloadConfig(conn grpc.ClientConnInterface, parsedConfig *lbot.ConfigRequest) (err error)
- func StartWorkload(conn grpc.ClientConnInterface, request *proto.StartRequest) (err error)
- func StartWorkloadWithProgress(conn grpc.ClientConnInterface, request *proto.StartWithProgressRequest) (err error)
- func StopWorkload(conn grpc.ClientConnInterface, request *proto.StopRequest) (err error)
- func WatchWorkload(conn grpc.ClientConnInterface, request *proto.WatchRequest) (err error)
- func WorkloadProgress(conn grpc.ClientConnInterface, request *proto.ProgressRequest) (err error)
- type ProgressBar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildConfigRequest ¶
func BuildConfigRequest(request *lbot.ConfigRequest) *proto.ConfigRequest
func CheckPromptErr ¶
func CheckPromptErr(err error)
func GenerateConfigWorkload ¶
func GenerateConfigWorkload() (err error)
func GetBooleanInput ¶
func GetNumberInput ¶
func GetSelectInput ¶
func GetStringInput ¶
func GetWorkloadConfig ¶
func GetWorkloadConfig(conn grpc.ClientConnInterface) (err error)
func SetWorkloadConfig ¶
func SetWorkloadConfig(conn grpc.ClientConnInterface, parsedConfig *lbot.ConfigRequest) (err error)
checks if process is running in local system here should be cli config request - not lbot one
func StartWorkload ¶
func StartWorkload(conn grpc.ClientConnInterface, request *proto.StartRequest) (err error)
tutaj nie powinno wchodzić proto
func StartWorkloadWithProgress ¶
func StartWorkloadWithProgress(conn grpc.ClientConnInterface, request *proto.StartWithProgressRequest) (err error)
func StopWorkload ¶
func StopWorkload(conn grpc.ClientConnInterface, request *proto.StopRequest) (err error)
func WatchWorkload ¶
func WatchWorkload(conn grpc.ClientConnInterface, request *proto.WatchRequest) (err error)
func WorkloadProgress ¶
func WorkloadProgress(conn grpc.ClientConnInterface, request *proto.ProgressRequest) (err error)
Types ¶
type ProgressBar ¶
type ProgressBar struct {
// contains filtered or unexported fields
}
func NewProgressBar ¶
func NewProgressBar() *ProgressBar
todo: no need to send request ops and request duration in every request pull job data in init
func (*ProgressBar) Finish ¶
func (b *ProgressBar) Finish()
func (*ProgressBar) Init ¶
func (b *ProgressBar) Init(resp *proto.ProgressResponse)
func (*ProgressBar) IsInitialized ¶
func (b *ProgressBar) IsInitialized(resp *proto.ProgressResponse) bool
func (*ProgressBar) Start ¶
func (b *ProgressBar) Start(resp *proto.ProgressResponse)
func (*ProgressBar) Update ¶
func (b *ProgressBar) Update(resp *proto.ProgressResponse)
Click to show internal directories.
Click to hide internal directories.