Documentation ¶
Index ¶
- func MustPopulateResourceStatus[T any](obj T) T
- type FakeResource
- func (f *FakeResource) GetBaseResource() *v1.BaseResource
- func (f *FakeResource) GetSystemData() *v1.SystemData
- func (f *FakeResource) ProvisioningState() v1.ProvisioningState
- func (f *FakeResource) ResourceTypeName() string
- func (f *FakeResource) SetProvisioningState(state v1.ProvisioningState)
- func (f *FakeResource) UpdateMetadata(ctx *v1.ARMRequestContext, oldResource *v1.BaseResource)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustPopulateResourceStatus ¶
func MustPopulateResourceStatus[T any](obj T) T
MustPopulateResourceStatus populates a ResourceStatus object with an output resource commonly used in our test fixtures.
Example usage (in a converter test):
..ResourceStatus: resourcetypeutil.MustPopulateResourceStatus(&myapiversion.ResourceStatus{})
Types ¶
type FakeResource ¶
type FakeResource struct{}
FakeResource is a fake resource type.
func (*FakeResource) GetBaseResource ¶
func (f *FakeResource) GetBaseResource() *v1.BaseResource
func (*FakeResource) GetSystemData ¶
func (f *FakeResource) GetSystemData() *v1.SystemData
func (*FakeResource) ProvisioningState ¶
func (f *FakeResource) ProvisioningState() v1.ProvisioningState
func (*FakeResource) ResourceTypeName ¶
func (f *FakeResource) ResourceTypeName() string
Always returns "FakeResource" as the name.
func (*FakeResource) SetProvisioningState ¶
func (f *FakeResource) SetProvisioningState(state v1.ProvisioningState)
func (*FakeResource) UpdateMetadata ¶
func (f *FakeResource) UpdateMetadata(ctx *v1.ARMRequestContext, oldResource *v1.BaseResource)
Click to show internal directories.
Click to hide internal directories.