Documentation
¶
Index ¶
- func CreateFromVirtualNetwork(d *v1alpha1.VirtualNetwork, projectID string) *packngo.VirtualNetworkCreateRequest
- func GenerateObservation(vlan *packngo.VirtualNetwork) (v1alpha1.VirtualNetworkObservation, error)
- func IsUpToDate(d *v1alpha1.VirtualNetwork, p *packngo.VirtualNetwork) bool
- func LateInitialize(in *v1alpha1.VirtualNetworkParameters, vlan *packngo.VirtualNetwork)
- type Client
- type ClientWithDefaults
- type CredentialedClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFromVirtualNetwork ¶
func CreateFromVirtualNetwork(d *v1alpha1.VirtualNetwork, projectID string) *packngo.VirtualNetworkCreateRequest
CreateFromVirtualNetwork return packngo.VirtualNetworkCreateRequest created from Kubernetes
func GenerateObservation ¶
func GenerateObservation(vlan *packngo.VirtualNetwork) (v1alpha1.VirtualNetworkObservation, error)
GenerateObservation produces v1alpha1.VirtualNetworkObservation from packngo.VirtualNetwork
func IsUpToDate ¶
func IsUpToDate(d *v1alpha1.VirtualNetwork, p *packngo.VirtualNetwork) bool
IsUpToDate returns true if the supplied Kubernetes resource does not differ from the supplied Equinix Metal resource. It considers only fields that can be modified in place without deleting and recreating the instance, which are immutable.
func LateInitialize ¶
func LateInitialize(in *v1alpha1.VirtualNetworkParameters, vlan *packngo.VirtualNetwork)
LateInitialize fills the empty fields in *v1alpha2.VirtualNetworkParameters with the values seen in packngo.VirtualNetwork
Types ¶
type Client ¶
type Client interface { List(projectID string, listOpt *packngo.ListOptions) (*packngo.VirtualNetworkListResponse, *packngo.Response, error) Create(*packngo.VirtualNetworkCreateRequest) (*packngo.VirtualNetwork, *packngo.Response, error) Get(vlanID string, getOpt *packngo.GetOptions) (*packngo.VirtualNetwork, *packngo.Response, error) Delete(virtualNetworkID string) (*packngo.Response, error) }
Client implements the Equinix Metal API methods needed to interact with VirtualNetworks for the Equinix Metal Crossplane Provider
type ClientWithDefaults ¶
type ClientWithDefaults interface { Client clients.DefaultGetter }
ClientWithDefaults is an interface that provides VirtualNetwork services and provides default values for common properties
type CredentialedClient ¶
type CredentialedClient struct { Client *clients.Credentials }
CredentialedClient is a credentialed client to Equinix Metal VirtualNetwork services