session

package
v0.0.0-...-dbfc090 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSessionFormat

func NewSessionFormat(source string) formatter.Format

NewSessionFormat for formatting output

func Write

func Write(ctx formatter.Context, sessions []ybaclient.SessionInfo) error

Write renders the context for a list of Sessions

Types

type Context

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

Context for session outputs

func NewSessionContext

func NewSessionContext() *Context

NewSessionContext creates a new context for rendering session

func (*Context) ApiToken

func (c *Context) ApiToken() string

ApiToken fetches api token

func (*Context) AuthToken

func (c *Context) AuthToken() string

AuthToken fetches auth token

func (*Context) CustomerUUID

func (c *Context) CustomerUUID() string

CustomerUUID fetches Customer UUID

func (*Context) MarshalJSON

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

MarshalJSON function

func (*Context) UserUUID

func (c *Context) UserUUID() string

UserUUID fetches User UUID

Jump to

Keyboard shortcuts

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