org

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCreate

func GenerateCreate(spec v1alpha1.OrgParameters) *resource.OrganizationCreate

GenerateCreate generates the OrganizationCreate from an *OrgParameters

func GenerateObservation

func GenerateObservation(o *resource.Organization) v1alpha1.OrgObservation

GenerateObservation takes an Organization resource and returns *OrgObservation.

func GetByIDOrName

func GetByIDOrName(ctx context.Context, c Client, id, name string) (*resource.Organization, error)

GetByIDOrName returns an organization by ID or Name.

func GetGUID

func GetGUID(ctx context.Context, c Client, name string) (*string, error)

GetGUID returns the GUID of an organization by name. It returns an empty string, if the organization does not exist, or there is an error.

func IsUpToDate

func IsUpToDate(spec v1alpha1.OrgParameters, observed *resource.Organization) bool

IsUpToDate checks whether current state is up-to-date compared to the given set of parameters.

func LateInitialize

func LateInitialize(spec *v1alpha1.OrgParameters, from *resource.Organization)

LateInitialize fills the unassigned fields with values from a Organization resource.

func ResolveByName

func ResolveByName(ctx context.Context, clientFn clients.ClientFn, mg resource.Managed) error

/ Initialize implements the Initializer interface It assumes that orgName is set

Types

type Client

Client is the interface that defines the methods that a Org client should implement.

func NewClient

func NewClient(cf *client.Client) Client

NewClient creates a new client instance from a cfclient.ServiceInstance instance.

type OrgScoped

type OrgScoped interface {
	GetOrgRef() *v1alpha1.OrgReference
}

type Resource

type Resource resource.Organization

Resource is the type that implements the resource.Resource interface for a Org.

Jump to

Keyboard shortcuts

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