fake

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateZonesServer

type PrivateZonesServer struct {
	// BeginCreateOrUpdate is the fake for method PrivateZonesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, privateZoneName string, parameters armprivatedns.PrivateZone, options *armprivatedns.PrivateZonesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armprivatedns.PrivateZonesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method PrivateZonesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, privateZoneName string, options *armprivatedns.PrivateZonesClientBeginDeleteOptions) (resp azfake.PollerResponder[armprivatedns.PrivateZonesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method PrivateZonesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, privateZoneName string, options *armprivatedns.PrivateZonesClientGetOptions) (resp azfake.Responder[armprivatedns.PrivateZonesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PrivateZonesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armprivatedns.PrivateZonesClientListOptions) (resp azfake.PagerResponder[armprivatedns.PrivateZonesClientListResponse])

	// NewListByResourceGroupPager is the fake for method PrivateZonesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armprivatedns.PrivateZonesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armprivatedns.PrivateZonesClientListByResourceGroupResponse])

	// BeginUpdate is the fake for method PrivateZonesClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, privateZoneName string, parameters armprivatedns.PrivateZone, options *armprivatedns.PrivateZonesClientBeginUpdateOptions) (resp azfake.PollerResponder[armprivatedns.PrivateZonesClientUpdateResponse], errResp azfake.ErrorResponder)
}

PrivateZonesServer is a fake server for instances of the armprivatedns.PrivateZonesClient type.

type PrivateZonesServerTransport

type PrivateZonesServerTransport struct {
	// contains filtered or unexported fields
}

PrivateZonesServerTransport connects instances of armprivatedns.PrivateZonesClient to instances of PrivateZonesServer. Don't use this type directly, use NewPrivateZonesServerTransport instead.

func NewPrivateZonesServerTransport

func NewPrivateZonesServerTransport(srv *PrivateZonesServer) *PrivateZonesServerTransport

NewPrivateZonesServerTransport creates a new instance of PrivateZonesServerTransport with the provided implementation. The returned PrivateZonesServerTransport instance is connected to an instance of armprivatedns.PrivateZonesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PrivateZonesServerTransport) Do

Do implements the policy.Transporter interface for PrivateZonesServerTransport.

type RecordSetsServer

type RecordSetsServer struct {
	// CreateOrUpdate is the fake for method RecordSetsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, privateZoneName string, recordType armprivatedns.RecordType, relativeRecordSetName string, parameters armprivatedns.RecordSet, options *armprivatedns.RecordSetsClientCreateOrUpdateOptions) (resp azfake.Responder[armprivatedns.RecordSetsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method RecordSetsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, privateZoneName string, recordType armprivatedns.RecordType, relativeRecordSetName string, options *armprivatedns.RecordSetsClientDeleteOptions) (resp azfake.Responder[armprivatedns.RecordSetsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method RecordSetsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, privateZoneName string, recordType armprivatedns.RecordType, relativeRecordSetName string, options *armprivatedns.RecordSetsClientGetOptions) (resp azfake.Responder[armprivatedns.RecordSetsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method RecordSetsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, privateZoneName string, options *armprivatedns.RecordSetsClientListOptions) (resp azfake.PagerResponder[armprivatedns.RecordSetsClientListResponse])

	// NewListByTypePager is the fake for method RecordSetsClient.NewListByTypePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByTypePager func(resourceGroupName string, privateZoneName string, recordType armprivatedns.RecordType, options *armprivatedns.RecordSetsClientListByTypeOptions) (resp azfake.PagerResponder[armprivatedns.RecordSetsClientListByTypeResponse])

	// Update is the fake for method RecordSetsClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, privateZoneName string, recordType armprivatedns.RecordType, relativeRecordSetName string, parameters armprivatedns.RecordSet, options *armprivatedns.RecordSetsClientUpdateOptions) (resp azfake.Responder[armprivatedns.RecordSetsClientUpdateResponse], errResp azfake.ErrorResponder)
}

RecordSetsServer is a fake server for instances of the armprivatedns.RecordSetsClient type.

type RecordSetsServerTransport

type RecordSetsServerTransport struct {
	// contains filtered or unexported fields
}

RecordSetsServerTransport connects instances of armprivatedns.RecordSetsClient to instances of RecordSetsServer. Don't use this type directly, use NewRecordSetsServerTransport instead.

func NewRecordSetsServerTransport

func NewRecordSetsServerTransport(srv *RecordSetsServer) *RecordSetsServerTransport

NewRecordSetsServerTransport creates a new instance of RecordSetsServerTransport with the provided implementation. The returned RecordSetsServerTransport instance is connected to an instance of armprivatedns.RecordSetsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*RecordSetsServerTransport) Do

Do implements the policy.Transporter interface for RecordSetsServerTransport.

type ServerFactory

type ServerFactory struct {
	PrivateZonesServer        PrivateZonesServer
	RecordSetsServer          RecordSetsServer
	VirtualNetworkLinksServer VirtualNetworkLinksServer
}

ServerFactory is a fake server for instances of the armprivatedns.ClientFactory type.

type ServerFactoryTransport

type ServerFactoryTransport struct {
	// contains filtered or unexported fields
}

ServerFactoryTransport connects instances of armprivatedns.ClientFactory to instances of ServerFactory. Don't use this type directly, use NewServerFactoryTransport instead.

func NewServerFactoryTransport

func NewServerFactoryTransport(srv *ServerFactory) *ServerFactoryTransport

NewServerFactoryTransport creates a new instance of ServerFactoryTransport with the provided implementation. The returned ServerFactoryTransport instance is connected to an instance of armprivatedns.ClientFactory via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerFactoryTransport) Do

Do implements the policy.Transporter interface for ServerFactoryTransport.

type VirtualNetworkLinksServer

type VirtualNetworkLinksServer struct {
	// BeginCreateOrUpdate is the fake for method VirtualNetworkLinksClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated, http.StatusAccepted
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, privateZoneName string, virtualNetworkLinkName string, parameters armprivatedns.VirtualNetworkLink, options *armprivatedns.VirtualNetworkLinksClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armprivatedns.VirtualNetworkLinksClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method VirtualNetworkLinksClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, privateZoneName string, virtualNetworkLinkName string, options *armprivatedns.VirtualNetworkLinksClientBeginDeleteOptions) (resp azfake.PollerResponder[armprivatedns.VirtualNetworkLinksClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method VirtualNetworkLinksClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, privateZoneName string, virtualNetworkLinkName string, options *armprivatedns.VirtualNetworkLinksClientGetOptions) (resp azfake.Responder[armprivatedns.VirtualNetworkLinksClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method VirtualNetworkLinksClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, privateZoneName string, options *armprivatedns.VirtualNetworkLinksClientListOptions) (resp azfake.PagerResponder[armprivatedns.VirtualNetworkLinksClientListResponse])

	// BeginUpdate is the fake for method VirtualNetworkLinksClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceGroupName string, privateZoneName string, virtualNetworkLinkName string, parameters armprivatedns.VirtualNetworkLink, options *armprivatedns.VirtualNetworkLinksClientBeginUpdateOptions) (resp azfake.PollerResponder[armprivatedns.VirtualNetworkLinksClientUpdateResponse], errResp azfake.ErrorResponder)
}

VirtualNetworkLinksServer is a fake server for instances of the armprivatedns.VirtualNetworkLinksClient type.

type VirtualNetworkLinksServerTransport

type VirtualNetworkLinksServerTransport struct {
	// contains filtered or unexported fields
}

VirtualNetworkLinksServerTransport connects instances of armprivatedns.VirtualNetworkLinksClient to instances of VirtualNetworkLinksServer. Don't use this type directly, use NewVirtualNetworkLinksServerTransport instead.

func NewVirtualNetworkLinksServerTransport

func NewVirtualNetworkLinksServerTransport(srv *VirtualNetworkLinksServer) *VirtualNetworkLinksServerTransport

NewVirtualNetworkLinksServerTransport creates a new instance of VirtualNetworkLinksServerTransport with the provided implementation. The returned VirtualNetworkLinksServerTransport instance is connected to an instance of armprivatedns.VirtualNetworkLinksClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*VirtualNetworkLinksServerTransport) Do

Do implements the policy.Transporter interface for VirtualNetworkLinksServerTransport.

Jump to

Keyboard shortcuts

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