fake

package
v0.0.0-...-45adee8 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BgpPeersServer

type BgpPeersServer struct {
	// BeginCreateOrUpdate is the fake for method BgpPeersClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceURI string, bgpPeerName string, resource armcontainerorchestratorruntime.BgpPeer, options *armcontainerorchestratorruntime.BgpPeersClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armcontainerorchestratorruntime.BgpPeersClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method BgpPeersClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceURI string, bgpPeerName string, options *armcontainerorchestratorruntime.BgpPeersClientDeleteOptions) (resp azfake.Responder[armcontainerorchestratorruntime.BgpPeersClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method BgpPeersClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceURI string, bgpPeerName string, options *armcontainerorchestratorruntime.BgpPeersClientGetOptions) (resp azfake.Responder[armcontainerorchestratorruntime.BgpPeersClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method BgpPeersClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceURI string, options *armcontainerorchestratorruntime.BgpPeersClientListOptions) (resp azfake.PagerResponder[armcontainerorchestratorruntime.BgpPeersClientListResponse])
}

BgpPeersServer is a fake server for instances of the armcontainerorchestratorruntime.BgpPeersClient type.

type BgpPeersServerTransport

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

BgpPeersServerTransport connects instances of armcontainerorchestratorruntime.BgpPeersClient to instances of BgpPeersServer. Don't use this type directly, use NewBgpPeersServerTransport instead.

func NewBgpPeersServerTransport

func NewBgpPeersServerTransport(srv *BgpPeersServer) *BgpPeersServerTransport

NewBgpPeersServerTransport creates a new instance of BgpPeersServerTransport with the provided implementation. The returned BgpPeersServerTransport instance is connected to an instance of armcontainerorchestratorruntime.BgpPeersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*BgpPeersServerTransport) Do

Do implements the policy.Transporter interface for BgpPeersServerTransport.

type LoadBalancersServer

type LoadBalancersServer struct {
	// BeginCreateOrUpdate is the fake for method LoadBalancersClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceURI string, loadBalancerName string, resource armcontainerorchestratorruntime.LoadBalancer, options *armcontainerorchestratorruntime.LoadBalancersClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armcontainerorchestratorruntime.LoadBalancersClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method LoadBalancersClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceURI string, loadBalancerName string, options *armcontainerorchestratorruntime.LoadBalancersClientDeleteOptions) (resp azfake.Responder[armcontainerorchestratorruntime.LoadBalancersClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method LoadBalancersClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceURI string, loadBalancerName string, options *armcontainerorchestratorruntime.LoadBalancersClientGetOptions) (resp azfake.Responder[armcontainerorchestratorruntime.LoadBalancersClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method LoadBalancersClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceURI string, options *armcontainerorchestratorruntime.LoadBalancersClientListOptions) (resp azfake.PagerResponder[armcontainerorchestratorruntime.LoadBalancersClientListResponse])
}

LoadBalancersServer is a fake server for instances of the armcontainerorchestratorruntime.LoadBalancersClient type.

type LoadBalancersServerTransport

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

LoadBalancersServerTransport connects instances of armcontainerorchestratorruntime.LoadBalancersClient to instances of LoadBalancersServer. Don't use this type directly, use NewLoadBalancersServerTransport instead.

func NewLoadBalancersServerTransport

func NewLoadBalancersServerTransport(srv *LoadBalancersServer) *LoadBalancersServerTransport

NewLoadBalancersServerTransport creates a new instance of LoadBalancersServerTransport with the provided implementation. The returned LoadBalancersServerTransport instance is connected to an instance of armcontainerorchestratorruntime.LoadBalancersClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LoadBalancersServerTransport) Do

Do implements the policy.Transporter interface for LoadBalancersServerTransport.

type OperationsServer

type OperationsServer struct {
	// NewListPager is the fake for method OperationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(options *armcontainerorchestratorruntime.OperationsClientListOptions) (resp azfake.PagerResponder[armcontainerorchestratorruntime.OperationsClientListResponse])
}

OperationsServer is a fake server for instances of the armcontainerorchestratorruntime.OperationsClient type.

type OperationsServerTransport

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

OperationsServerTransport connects instances of armcontainerorchestratorruntime.OperationsClient to instances of OperationsServer. Don't use this type directly, use NewOperationsServerTransport instead.

func NewOperationsServerTransport

func NewOperationsServerTransport(srv *OperationsServer) *OperationsServerTransport

NewOperationsServerTransport creates a new instance of OperationsServerTransport with the provided implementation. The returned OperationsServerTransport instance is connected to an instance of armcontainerorchestratorruntime.OperationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OperationsServerTransport) Do

Do implements the policy.Transporter interface for OperationsServerTransport.

type ServerFactory

type ServerFactory struct {
	// BgpPeersServer contains the fakes for client BgpPeersClient
	BgpPeersServer BgpPeersServer

	// LoadBalancersServer contains the fakes for client LoadBalancersClient
	LoadBalancersServer LoadBalancersServer

	// OperationsServer contains the fakes for client OperationsClient
	OperationsServer OperationsServer

	// ServicesServer contains the fakes for client ServicesClient
	ServicesServer ServicesServer

	// StorageClassServer contains the fakes for client StorageClassClient
	StorageClassServer StorageClassServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armcontainerorchestratorruntime.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 armcontainerorchestratorruntime.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 ServicesServer

type ServicesServer struct {
	// CreateOrUpdate is the fake for method ServicesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceURI string, serviceName string, resource armcontainerorchestratorruntime.ServiceResource, options *armcontainerorchestratorruntime.ServicesClientCreateOrUpdateOptions) (resp azfake.Responder[armcontainerorchestratorruntime.ServicesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ServicesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceURI string, serviceName string, options *armcontainerorchestratorruntime.ServicesClientDeleteOptions) (resp azfake.Responder[armcontainerorchestratorruntime.ServicesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ServicesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceURI string, serviceName string, options *armcontainerorchestratorruntime.ServicesClientGetOptions) (resp azfake.Responder[armcontainerorchestratorruntime.ServicesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ServicesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceURI string, options *armcontainerorchestratorruntime.ServicesClientListOptions) (resp azfake.PagerResponder[armcontainerorchestratorruntime.ServicesClientListResponse])
}

ServicesServer is a fake server for instances of the armcontainerorchestratorruntime.ServicesClient type.

type ServicesServerTransport

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

ServicesServerTransport connects instances of armcontainerorchestratorruntime.ServicesClient to instances of ServicesServer. Don't use this type directly, use NewServicesServerTransport instead.

func NewServicesServerTransport

func NewServicesServerTransport(srv *ServicesServer) *ServicesServerTransport

NewServicesServerTransport creates a new instance of ServicesServerTransport with the provided implementation. The returned ServicesServerTransport instance is connected to an instance of armcontainerorchestratorruntime.ServicesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServicesServerTransport) Do

Do implements the policy.Transporter interface for ServicesServerTransport.

type StorageClassServer

type StorageClassServer struct {
	// BeginCreateOrUpdate is the fake for method StorageClassClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceURI string, storageClassName string, resource armcontainerorchestratorruntime.StorageClassResource, options *armcontainerorchestratorruntime.StorageClassClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armcontainerorchestratorruntime.StorageClassClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method StorageClassClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceURI string, storageClassName string, options *armcontainerorchestratorruntime.StorageClassClientBeginDeleteOptions) (resp azfake.PollerResponder[armcontainerorchestratorruntime.StorageClassClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method StorageClassClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceURI string, storageClassName string, options *armcontainerorchestratorruntime.StorageClassClientGetOptions) (resp azfake.Responder[armcontainerorchestratorruntime.StorageClassClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method StorageClassClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceURI string, options *armcontainerorchestratorruntime.StorageClassClientListOptions) (resp azfake.PagerResponder[armcontainerorchestratorruntime.StorageClassClientListResponse])

	// BeginUpdate is the fake for method StorageClassClient.BeginUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdate func(ctx context.Context, resourceURI string, storageClassName string, properties armcontainerorchestratorruntime.StorageClassResourceUpdate, options *armcontainerorchestratorruntime.StorageClassClientBeginUpdateOptions) (resp azfake.PollerResponder[armcontainerorchestratorruntime.StorageClassClientUpdateResponse], errResp azfake.ErrorResponder)
}

StorageClassServer is a fake server for instances of the armcontainerorchestratorruntime.StorageClassClient type.

type StorageClassServerTransport

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

StorageClassServerTransport connects instances of armcontainerorchestratorruntime.StorageClassClient to instances of StorageClassServer. Don't use this type directly, use NewStorageClassServerTransport instead.

func NewStorageClassServerTransport

func NewStorageClassServerTransport(srv *StorageClassServer) *StorageClassServerTransport

NewStorageClassServerTransport creates a new instance of StorageClassServerTransport with the provided implementation. The returned StorageClassServerTransport instance is connected to an instance of armcontainerorchestratorruntime.StorageClassClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*StorageClassServerTransport) Do

Do implements the policy.Transporter interface for StorageClassServerTransport.

Jump to

Keyboard shortcuts

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