session

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUnidentifiedICenterVersion

func IsUnidentifiedICenterVersion(err error) bool

Types

type Feature

type Feature struct {
	KeepAliveDuration time.Duration
}

func DefaultFeature

func DefaultFeature() Feature

type Params

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

func NewParams

func NewParams() *Params

func (*Params) WithFeatures

func (p *Params) WithFeatures(feature Feature) *Params

func (*Params) WithServer

func (p *Params) WithServer(server string) *Params

func (*Params) WithUserInfo

func (p *Params) WithUserInfo(username, password string) *Params

type Session

type Session struct {
	*basegov1.ICSConnection
}

Session is a ICS session with a configured Finder.

func GetOrCreate

func GetOrCreate(ctx context.Context, params *Params) (*Session, error)

GetOrCreate gets a cached session or creates a new one if one does not already exist.

func (*Session) GetVersion

func (s *Session) GetVersion() (infrav1.ICenterVersion, error)

func (*Session) Logout

func (s *Session) Logout(ctx context.Context) error

func (*Session) SessionIsActive

func (s *Session) SessionIsActive(ctx context.Context, logger logr.Logger) (bool, error)

Jump to

Keyboard shortcuts

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