fake

package
v0.6.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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactSourcesServer

type ArtifactSourcesServer struct {
	// CreateOrUpdate is the fake for method ArtifactSourcesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, artifactSourceName string, options *armdeploymentmanager.ArtifactSourcesClientCreateOrUpdateOptions) (resp azfake.Responder[armdeploymentmanager.ArtifactSourcesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ArtifactSourcesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, artifactSourceName string, options *armdeploymentmanager.ArtifactSourcesClientDeleteOptions) (resp azfake.Responder[armdeploymentmanager.ArtifactSourcesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ArtifactSourcesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, artifactSourceName string, options *armdeploymentmanager.ArtifactSourcesClientGetOptions) (resp azfake.Responder[armdeploymentmanager.ArtifactSourcesClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method ArtifactSourcesClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, resourceGroupName string, options *armdeploymentmanager.ArtifactSourcesClientListOptions) (resp azfake.Responder[armdeploymentmanager.ArtifactSourcesClientListResponse], errResp azfake.ErrorResponder)
}

ArtifactSourcesServer is a fake server for instances of the armdeploymentmanager.ArtifactSourcesClient type.

type ArtifactSourcesServerTransport

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

ArtifactSourcesServerTransport connects instances of armdeploymentmanager.ArtifactSourcesClient to instances of ArtifactSourcesServer. Don't use this type directly, use NewArtifactSourcesServerTransport instead.

func NewArtifactSourcesServerTransport

func NewArtifactSourcesServerTransport(srv *ArtifactSourcesServer) *ArtifactSourcesServerTransport

NewArtifactSourcesServerTransport creates a new instance of ArtifactSourcesServerTransport with the provided implementation. The returned ArtifactSourcesServerTransport instance is connected to an instance of armdeploymentmanager.ArtifactSourcesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ArtifactSourcesServerTransport) Do

Do implements the policy.Transporter interface for ArtifactSourcesServerTransport.

type OperationsServer

type OperationsServer struct {
	// List is the fake for method OperationsClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, options *armdeploymentmanager.OperationsClientListOptions) (resp azfake.Responder[armdeploymentmanager.OperationsClientListResponse], errResp azfake.ErrorResponder)
}

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armdeploymentmanager.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 armdeploymentmanager.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 RolloutsServer

type RolloutsServer struct {
	// Cancel is the fake for method RolloutsClient.Cancel
	// HTTP status codes to indicate success: http.StatusOK
	Cancel func(ctx context.Context, resourceGroupName string, rolloutName string, options *armdeploymentmanager.RolloutsClientCancelOptions) (resp azfake.Responder[armdeploymentmanager.RolloutsClientCancelResponse], errResp azfake.ErrorResponder)

	// BeginCreateOrUpdate is the fake for method RolloutsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, rolloutName string, options *armdeploymentmanager.RolloutsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armdeploymentmanager.RolloutsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method RolloutsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, rolloutName string, options *armdeploymentmanager.RolloutsClientDeleteOptions) (resp azfake.Responder[armdeploymentmanager.RolloutsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method RolloutsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, rolloutName string, options *armdeploymentmanager.RolloutsClientGetOptions) (resp azfake.Responder[armdeploymentmanager.RolloutsClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method RolloutsClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, resourceGroupName string, options *armdeploymentmanager.RolloutsClientListOptions) (resp azfake.Responder[armdeploymentmanager.RolloutsClientListResponse], errResp azfake.ErrorResponder)

	// Restart is the fake for method RolloutsClient.Restart
	// HTTP status codes to indicate success: http.StatusOK
	Restart func(ctx context.Context, resourceGroupName string, rolloutName string, options *armdeploymentmanager.RolloutsClientRestartOptions) (resp azfake.Responder[armdeploymentmanager.RolloutsClientRestartResponse], errResp azfake.ErrorResponder)
}

RolloutsServer is a fake server for instances of the armdeploymentmanager.RolloutsClient type.

type RolloutsServerTransport

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

RolloutsServerTransport connects instances of armdeploymentmanager.RolloutsClient to instances of RolloutsServer. Don't use this type directly, use NewRolloutsServerTransport instead.

func NewRolloutsServerTransport

func NewRolloutsServerTransport(srv *RolloutsServer) *RolloutsServerTransport

NewRolloutsServerTransport creates a new instance of RolloutsServerTransport with the provided implementation. The returned RolloutsServerTransport instance is connected to an instance of armdeploymentmanager.RolloutsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*RolloutsServerTransport) Do

Do implements the policy.Transporter interface for RolloutsServerTransport.

type ServerFactory

type ServerFactory struct {
	ArtifactSourcesServer   ArtifactSourcesServer
	OperationsServer        OperationsServer
	RolloutsServer          RolloutsServer
	ServiceTopologiesServer ServiceTopologiesServer
	ServiceUnitsServer      ServiceUnitsServer
	ServicesServer          ServicesServer
	StepsServer             StepsServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armdeploymentmanager.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 armdeploymentmanager.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 ServiceTopologiesServer

type ServiceTopologiesServer struct {
	// CreateOrUpdate is the fake for method ServiceTopologiesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceTopologyInfo armdeploymentmanager.ServiceTopologyResource, options *armdeploymentmanager.ServiceTopologiesClientCreateOrUpdateOptions) (resp azfake.Responder[armdeploymentmanager.ServiceTopologiesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ServiceTopologiesClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, serviceTopologyName string, options *armdeploymentmanager.ServiceTopologiesClientDeleteOptions) (resp azfake.Responder[armdeploymentmanager.ServiceTopologiesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ServiceTopologiesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, serviceTopologyName string, options *armdeploymentmanager.ServiceTopologiesClientGetOptions) (resp azfake.Responder[armdeploymentmanager.ServiceTopologiesClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method ServiceTopologiesClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, resourceGroupName string, options *armdeploymentmanager.ServiceTopologiesClientListOptions) (resp azfake.Responder[armdeploymentmanager.ServiceTopologiesClientListResponse], errResp azfake.ErrorResponder)
}

ServiceTopologiesServer is a fake server for instances of the armdeploymentmanager.ServiceTopologiesClient type.

type ServiceTopologiesServerTransport

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

ServiceTopologiesServerTransport connects instances of armdeploymentmanager.ServiceTopologiesClient to instances of ServiceTopologiesServer. Don't use this type directly, use NewServiceTopologiesServerTransport instead.

func NewServiceTopologiesServerTransport

func NewServiceTopologiesServerTransport(srv *ServiceTopologiesServer) *ServiceTopologiesServerTransport

NewServiceTopologiesServerTransport creates a new instance of ServiceTopologiesServerTransport with the provided implementation. The returned ServiceTopologiesServerTransport instance is connected to an instance of armdeploymentmanager.ServiceTopologiesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServiceTopologiesServerTransport) Do

Do implements the policy.Transporter interface for ServiceTopologiesServerTransport.

type ServiceUnitsServer

type ServiceUnitsServer struct {
	// BeginCreateOrUpdate is the fake for method ServiceUnitsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceUnitName string, serviceUnitInfo armdeploymentmanager.ServiceUnitResource, options *armdeploymentmanager.ServiceUnitsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armdeploymentmanager.ServiceUnitsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ServiceUnitsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceUnitName string, options *armdeploymentmanager.ServiceUnitsClientDeleteOptions) (resp azfake.Responder[armdeploymentmanager.ServiceUnitsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ServiceUnitsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceUnitName string, options *armdeploymentmanager.ServiceUnitsClientGetOptions) (resp azfake.Responder[armdeploymentmanager.ServiceUnitsClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method ServiceUnitsClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, options *armdeploymentmanager.ServiceUnitsClientListOptions) (resp azfake.Responder[armdeploymentmanager.ServiceUnitsClientListResponse], errResp azfake.ErrorResponder)
}

ServiceUnitsServer is a fake server for instances of the armdeploymentmanager.ServiceUnitsClient type.

type ServiceUnitsServerTransport

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

ServiceUnitsServerTransport connects instances of armdeploymentmanager.ServiceUnitsClient to instances of ServiceUnitsServer. Don't use this type directly, use NewServiceUnitsServerTransport instead.

func NewServiceUnitsServerTransport

func NewServiceUnitsServerTransport(srv *ServiceUnitsServer) *ServiceUnitsServerTransport

NewServiceUnitsServerTransport creates a new instance of ServiceUnitsServerTransport with the provided implementation. The returned ServiceUnitsServerTransport instance is connected to an instance of armdeploymentmanager.ServiceUnitsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServiceUnitsServerTransport) Do

Do implements the policy.Transporter interface for ServiceUnitsServerTransport.

type ServicesServer

type ServicesServer struct {
	// CreateOrUpdate is the fake for method ServicesClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, serviceTopologyName string, serviceName string, serviceInfo armdeploymentmanager.ServiceResource, options *armdeploymentmanager.ServicesClientCreateOrUpdateOptions) (resp azfake.Responder[armdeploymentmanager.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, resourceGroupName string, serviceTopologyName string, serviceName string, options *armdeploymentmanager.ServicesClientDeleteOptions) (resp azfake.Responder[armdeploymentmanager.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, resourceGroupName string, serviceTopologyName string, serviceName string, options *armdeploymentmanager.ServicesClientGetOptions) (resp azfake.Responder[armdeploymentmanager.ServicesClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method ServicesClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, resourceGroupName string, serviceTopologyName string, options *armdeploymentmanager.ServicesClientListOptions) (resp azfake.Responder[armdeploymentmanager.ServicesClientListResponse], errResp azfake.ErrorResponder)
}

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

type ServicesServerTransport

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

ServicesServerTransport connects instances of armdeploymentmanager.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 armdeploymentmanager.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 StepsServer

type StepsServer struct {
	// CreateOrUpdate is the fake for method StepsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceGroupName string, stepName string, options *armdeploymentmanager.StepsClientCreateOrUpdateOptions) (resp azfake.Responder[armdeploymentmanager.StepsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method StepsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceGroupName string, stepName string, options *armdeploymentmanager.StepsClientDeleteOptions) (resp azfake.Responder[armdeploymentmanager.StepsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method StepsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, stepName string, options *armdeploymentmanager.StepsClientGetOptions) (resp azfake.Responder[armdeploymentmanager.StepsClientGetResponse], errResp azfake.ErrorResponder)

	// List is the fake for method StepsClient.List
	// HTTP status codes to indicate success: http.StatusOK
	List func(ctx context.Context, resourceGroupName string, options *armdeploymentmanager.StepsClientListOptions) (resp azfake.Responder[armdeploymentmanager.StepsClientListResponse], errResp azfake.ErrorResponder)
}

StepsServer is a fake server for instances of the armdeploymentmanager.StepsClient type.

type StepsServerTransport

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

StepsServerTransport connects instances of armdeploymentmanager.StepsClient to instances of StepsServer. Don't use this type directly, use NewStepsServerTransport instead.

func NewStepsServerTransport

func NewStepsServerTransport(srv *StepsServer) *StepsServerTransport

NewStepsServerTransport creates a new instance of StepsServerTransport with the provided implementation. The returned StepsServerTransport instance is connected to an instance of armdeploymentmanager.StepsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*StepsServerTransport) Do

Do implements the policy.Transporter interface for StepsServerTransport.

Jump to

Keyboard shortcuts

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