registry

package
v1.17.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader interface {
	GetEntry(index string) oktres.Resource
	Entries() []oktres.Resource
}

Reader provide read only access to a registry

type Registry

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

Registry manages a list of objects to reconcile

func New

func New() *Registry

New Allocates a new registry

func (*Registry) AddEntry

func (reg *Registry) AddEntry(entry oktres.Resource) error

AddEntry Register a resource (Mutable or Not) in a registry if it doesn't already exsist. Else return an error

func (*Registry) Entries

func (reg *Registry) Entries() []oktres.Resource

Entries is the slice of all registry elements

func (*Registry) GetEntry

func (reg *Registry) GetEntry(index string) oktres.Resource

GetEntry Retrieve entry from its index key

func (*Registry) Reset

func (reg *Registry) Reset()

Reset Delete all registry elements and re-init the registry to 0 element

Jump to

Keyboard shortcuts

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