fake

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 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 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, zoneName string, relativeRecordSetName string, recordType armdns.RecordType, parameters armdns.RecordSet, options *armdns.RecordSetsClientCreateOrUpdateOptions) (resp azfake.Responder[armdns.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, zoneName string, relativeRecordSetName string, recordType armdns.RecordType, options *armdns.RecordSetsClientDeleteOptions) (resp azfake.Responder[armdns.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, zoneName string, relativeRecordSetName string, recordType armdns.RecordType, options *armdns.RecordSetsClientGetOptions) (resp azfake.Responder[armdns.RecordSetsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListAllByDNSZonePager is the fake for method RecordSetsClient.NewListAllByDNSZonePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListAllByDNSZonePager func(resourceGroupName string, zoneName string, options *armdns.RecordSetsClientListAllByDNSZoneOptions) (resp azfake.PagerResponder[armdns.RecordSetsClientListAllByDNSZoneResponse])

	// NewListByDNSZonePager is the fake for method RecordSetsClient.NewListByDNSZonePager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByDNSZonePager func(resourceGroupName string, zoneName string, options *armdns.RecordSetsClientListByDNSZoneOptions) (resp azfake.PagerResponder[armdns.RecordSetsClientListByDNSZoneResponse])

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

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

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

type RecordSetsServerTransport

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

RecordSetsServerTransport connects instances of armdns.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 armdns.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 ResourceReferenceServer

type ResourceReferenceServer struct {
	// GetByTargetResources is the fake for method ResourceReferenceClient.GetByTargetResources
	// HTTP status codes to indicate success: http.StatusOK
	GetByTargetResources func(ctx context.Context, parameters armdns.ResourceReferenceRequest, options *armdns.ResourceReferenceClientGetByTargetResourcesOptions) (resp azfake.Responder[armdns.ResourceReferenceClientGetByTargetResourcesResponse], errResp azfake.ErrorResponder)
}

ResourceReferenceServer is a fake server for instances of the armdns.ResourceReferenceClient type.

type ResourceReferenceServerTransport

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

ResourceReferenceServerTransport connects instances of armdns.ResourceReferenceClient to instances of ResourceReferenceServer. Don't use this type directly, use NewResourceReferenceServerTransport instead.

func NewResourceReferenceServerTransport

func NewResourceReferenceServerTransport(srv *ResourceReferenceServer) *ResourceReferenceServerTransport

NewResourceReferenceServerTransport creates a new instance of ResourceReferenceServerTransport with the provided implementation. The returned ResourceReferenceServerTransport instance is connected to an instance of armdns.ResourceReferenceClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ResourceReferenceServerTransport) Do

Do implements the policy.Transporter interface for ResourceReferenceServerTransport.

type ServerFactory

type ServerFactory struct {
	RecordSetsServer        RecordSetsServer
	ResourceReferenceServer ResourceReferenceServer
	ZonesServer             ZonesServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armdns.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 armdns.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 ZonesServer

type ZonesServer struct {
	// CreateOrUpdate is the fake for method ZonesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, zoneName string, parameters armdns.Zone, options *armdns.ZonesClientCreateOrUpdateOptions) (resp azfake.Responder[armdns.ZonesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ZonesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, zoneName string, options *armdns.ZonesClientBeginDeleteOptions) (resp azfake.PollerResponder[armdns.ZonesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ZonesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, zoneName string, options *armdns.ZonesClientGetOptions) (resp azfake.Responder[armdns.ZonesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ZonesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armdns.ZonesClientListOptions) (resp azfake.PagerResponder[armdns.ZonesClientListResponse])

	// NewListByResourceGroupPager is the fake for method ZonesClient.NewListByResourceGroupPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByResourceGroupPager func(resourceGroupName string, options *armdns.ZonesClientListByResourceGroupOptions) (resp azfake.PagerResponder[armdns.ZonesClientListByResourceGroupResponse])

	// Update is the fake for method ZonesClient.Update
	// HTTP status codes to indicate success: http.StatusOK
	Update func(ctx context.Context, resourceGroupName string, zoneName string, parameters armdns.ZoneUpdate, options *armdns.ZonesClientUpdateOptions) (resp azfake.Responder[armdns.ZonesClientUpdateResponse], errResp azfake.ErrorResponder)
}

ZonesServer is a fake server for instances of the armdns.ZonesClient type.

type ZonesServerTransport

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

ZonesServerTransport connects instances of armdns.ZonesClient to instances of ZonesServer. Don't use this type directly, use NewZonesServerTransport instead.

func NewZonesServerTransport

func NewZonesServerTransport(srv *ZonesServer) *ZonesServerTransport

NewZonesServerTransport creates a new instance of ZonesServerTransport with the provided implementation. The returned ZonesServerTransport instance is connected to an instance of armdns.ZonesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ZonesServerTransport) Do

Do implements the policy.Transporter interface for ZonesServerTransport.

Jump to

Keyboard shortcuts

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