xsession

package
v3.0.0-rc21 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetSid

func ResetSid(id Id)

ResetSid is for go test

Types

type Id

type Id struct {
	// contains filtered or unexported fields
}

func Eid

func Eid() *Id

Eid returns the Exec ID

func NewEid

func NewEid(ids ...uuid.UUID) Id

NewEid creates a new ExecId. If no uuid is given, assign a random one.

func NewOid

func NewOid(ids ...uuid.UUID) Id

NewOid creates a new OrchestrationId. If no uuid is given, assign a random one.

func NewSid

func NewSid(ids ...uuid.UUID) Id

NewSid creates a new SessionId. If no uuid is given, assign a random one.

func Oid

func Oid() *Id

Oid returns the Orchestration ID

func Sid

func Sid() *Id

Sid returns the Session ID

func (*Id) IsZero

func (t *Id) IsZero() bool

func (*Id) Load

func (t *Id) Load()

func (Id) MarshalJSON

func (t Id) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface. It marshals the SessionId as a JSON string representation of the UUID. This method is also used by sigs.k8s.io/yaml for YAML marshaling.

func (*Id) ParentVar

func (t *Id) ParentVar() string

ParentVar returns the session id as a OSVC_PARENT_SESSION_ID=<sid> environment variable setter string. Used by the daemon to provide its session id to the executed crm commands.

func (*Id) SetUUID

func (t *Id) SetUUID(id uuid.UUID)

func (*Id) String

func (t *Id) String() string

String returns the string representation of the SessionId.

func (*Id) UUID

func (t *Id) UUID() uuid.UUID

UUID returns the underlying uuid.UUID value.

func (*Id) UnmarshalJSON

func (t *Id) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshaler interface. It unmarshals a JSON string into a SessionId. This method is also used by sigs.k8s.io/yaml for YAML unmarshaling.

func (*Id) Var

func (t *Id) Var() string

Var returns the session id as a OSVC_SESSION_ID=<sid> environment variable setter string.

func (*Id) Zero

func (t *Id) Zero()

Jump to

Keyboard shortcuts

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