ybatask

package
v0.0.0-...-0c68bc3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTaskFormat

func NewTaskFormat(source string) formatter.Format

NewTaskFormat for formatting output

func Write

func Write(ctx formatter.Context, tasks []ybaclient.YBPTask) error

Write renders the context for a list of Tasks

Types

type Context

type Context struct {
	formatter.HeaderContext
	formatter.Context
	// contains filtered or unexported fields
}

Context for task outputs

func NewTaskContext

func NewTaskContext() *Context

NewTaskContext creates a new context for rendering task

func (*Context) MarshalJSON

func (c *Context) MarshalJSON() ([]byte, error)

MarshalJSON function

func (*Context) ResourceUUID

func (c *Context) ResourceUUID() string

ResourceUUID fetches the resource UUID

func (*Context) TaskUUID

func (c *Context) TaskUUID() string

TaskUUID fetches the task UUID

Jump to

Keyboard shortcuts

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