xrm

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package xrm contains the client to get a Crossplane resource with all its children as a tree of Resource.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client to get a Resource with all its children.

func NewClient

func NewClient(in client.Client, opts ...ResourceClientOption) (*Client, error)

NewClient returns a new Client.

func (*Client) GetResourceTree

func (kc *Client) GetResourceTree(ctx context.Context, root *resource.Resource) (*resource.Resource, error)

GetResourceTree returns the requested Crossplane Resource and all its children.

type ResourceClientOption

type ResourceClientOption func(*Client)

ResourceClientOption is a functional option for a Client.

func WithConcurrency added in v1.17.0

func WithConcurrency(n int) ResourceClientOption

WithConcurrency is a functional option that sets the concurrency for the resource load.

func WithConnectionSecrets

func WithConnectionSecrets(v bool) ResourceClientOption

WithConnectionSecrets is a functional option that sets the client to get secrets to the desired value.

Jump to

Keyboard shortcuts

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