resources

package
v0.0.0-...-821a2b4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedResource

type CachedResource[T any] struct {
	Data      T
	CachedAt  time.Time
	ExpiresIn time.Duration
}

func (*CachedResource[T]) IsExpired

func (r *CachedResource[T]) IsExpired() bool

type Resources

type Resources struct {
	User        *CachedResource[*body.UserRead]
	Deployments *CachedResource[[]body.DeploymentRead]
	Vms         *CachedResource[[]body.VmRead]
}

func (*Resources) DropDeploymentsCache

func (r *Resources) DropDeploymentsCache()

func (*Resources) DropUserCache

func (r *Resources) DropUserCache()

func (*Resources) DropVmsCache

func (r *Resources) DropVmsCache()

Jump to

Keyboard shortcuts

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