Documentation ¶
Index ¶
- func GenerateRouter(name string, in v1alpha1.RouterParameters, router *compute.Router)
- func GenerateRouterObservation(in compute.Router) v1alpha1.RouterObservation
- func IsUpToDate(name string, in *v1alpha1.RouterParameters, observed *compute.Router) (upTodate bool, err error)
- func LateInitializeSpec(spec *v1alpha1.RouterParameters, in compute.Router)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRouter ¶
func GenerateRouter(name string, in v1alpha1.RouterParameters, router *compute.Router)
GenerateRouter takes a *RouterParameters and returns *compute.Router. It assigns only the fields that are writable, i.e. not labelled as [Output Only] in Google's reference.
func GenerateRouterObservation ¶
func GenerateRouterObservation(in compute.Router) v1alpha1.RouterObservation
GenerateRouterObservation takes a compute.Router and returns *RouterObservation.
func IsUpToDate ¶
func IsUpToDate(name string, in *v1alpha1.RouterParameters, observed *compute.Router) (upTodate bool, err error)
IsUpToDate checks whether current state is up-to-date compared to the given set of parameters.
func LateInitializeSpec ¶
func LateInitializeSpec(spec *v1alpha1.RouterParameters, in compute.Router)
LateInitializeSpec fills unassigned fields with the values in compute.Router object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.