apim

package
v0.0.0-...-1a22633 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRecoverable

func IsRecoverable(err error) bool

func NewContextError

func NewContextError(err error) error

Types

type APIM

type APIM struct {
	APIs         *service.APIs
	Applications *service.Applications
	// contains filtered or unexported fields
}

APIM wraps services needed to sync resources with a given environment on a Gravitee.io APIM instance.

func FromContext

func FromContext(ctx context.Context, managementContext management.Context) (*APIM, error)

FromContext returns a new APIM instance from a given reconcile context and management context.

func (*APIM) EnvID

func (apim *APIM) EnvID() string

EnvID returns the environment ID of the current managed APIM instance.

func (*APIM) OrgID

func (apim *APIM) OrgID() string

OrgID returns the organization ID of the current managed APIM instance.

type ContextError

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

func (ContextError) Is

func (e ContextError) Is(err error) bool

Redirects the behavior of Is to As because Is is not implemented for k8s.io errors aggregate.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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