Documentation
¶
Index ¶
- func GenerateCreate(spec v1alpha1.OrgParameters) *resource.OrganizationCreate
- func GenerateObservation(o *resource.Organization) v1alpha1.OrgObservation
- func GetByIDOrName(ctx context.Context, c Client, id, name string) (*resource.Organization, error)
- func GetGUID(ctx context.Context, c Client, name string) (*string, error)
- func IsUpToDate(spec v1alpha1.OrgParameters, observed *resource.Organization) bool
- func LateInitialize(spec *v1alpha1.OrgParameters, from *resource.Organization)
- func ResolveByName(ctx context.Context, clientFn clients.ClientFn, mg resource.Managed) error
- type Client
- type OrgScoped
- type Resource
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 ¶
GetByIDOrName returns an organization by ID or Name.
func GetGUID ¶
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.
Types ¶
type Client ¶
type Client interface {
Get(context.Context, string) (*resource.Organization, error)
Single(context.Context, *client.OrganizationListOptions) (*resource.Organization, error)
Create(context.Context, *resource.OrganizationCreate) (*resource.Organization, error)
}
Client is the interface that defines the methods that a Org client should implement.
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.