fake

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactsServer

type ArtifactsServer struct {
	// CreateOrUpdate is the fake for method ArtifactsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceScope string, blueprintName string, artifactName string, artifact armblueprint.ArtifactClassification, options *armblueprint.ArtifactsClientCreateOrUpdateOptions) (resp azfake.Responder[armblueprint.ArtifactsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method ArtifactsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceScope string, blueprintName string, artifactName string, options *armblueprint.ArtifactsClientDeleteOptions) (resp azfake.Responder[armblueprint.ArtifactsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ArtifactsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceScope string, blueprintName string, artifactName string, options *armblueprint.ArtifactsClientGetOptions) (resp azfake.Responder[armblueprint.ArtifactsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ArtifactsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceScope string, blueprintName string, options *armblueprint.ArtifactsClientListOptions) (resp azfake.PagerResponder[armblueprint.ArtifactsClientListResponse])
}

ArtifactsServer is a fake server for instances of the armblueprint.ArtifactsClient type.

type ArtifactsServerTransport

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

ArtifactsServerTransport connects instances of armblueprint.ArtifactsClient to instances of ArtifactsServer. Don't use this type directly, use NewArtifactsServerTransport instead.

func NewArtifactsServerTransport

func NewArtifactsServerTransport(srv *ArtifactsServer) *ArtifactsServerTransport

NewArtifactsServerTransport creates a new instance of ArtifactsServerTransport with the provided implementation. The returned ArtifactsServerTransport instance is connected to an instance of armblueprint.ArtifactsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ArtifactsServerTransport) Do

Do implements the policy.Transporter interface for ArtifactsServerTransport.

type AssignmentOperationsServer

type AssignmentOperationsServer struct {
	// Get is the fake for method AssignmentOperationsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceScope string, assignmentName string, assignmentOperationName string, options *armblueprint.AssignmentOperationsClientGetOptions) (resp azfake.Responder[armblueprint.AssignmentOperationsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method AssignmentOperationsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceScope string, assignmentName string, options *armblueprint.AssignmentOperationsClientListOptions) (resp azfake.PagerResponder[armblueprint.AssignmentOperationsClientListResponse])
}

AssignmentOperationsServer is a fake server for instances of the armblueprint.AssignmentOperationsClient type.

type AssignmentOperationsServerTransport

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

AssignmentOperationsServerTransport connects instances of armblueprint.AssignmentOperationsClient to instances of AssignmentOperationsServer. Don't use this type directly, use NewAssignmentOperationsServerTransport instead.

func NewAssignmentOperationsServerTransport

func NewAssignmentOperationsServerTransport(srv *AssignmentOperationsServer) *AssignmentOperationsServerTransport

NewAssignmentOperationsServerTransport creates a new instance of AssignmentOperationsServerTransport with the provided implementation. The returned AssignmentOperationsServerTransport instance is connected to an instance of armblueprint.AssignmentOperationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AssignmentOperationsServerTransport) Do

Do implements the policy.Transporter interface for AssignmentOperationsServerTransport.

type AssignmentsServer

type AssignmentsServer struct {
	// CreateOrUpdate is the fake for method AssignmentsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceScope string, assignmentName string, assignment armblueprint.Assignment, options *armblueprint.AssignmentsClientCreateOrUpdateOptions) (resp azfake.Responder[armblueprint.AssignmentsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method AssignmentsClient.Delete
	// HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent
	Delete func(ctx context.Context, resourceScope string, assignmentName string, options *armblueprint.AssignmentsClientDeleteOptions) (resp azfake.Responder[armblueprint.AssignmentsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method AssignmentsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceScope string, assignmentName string, options *armblueprint.AssignmentsClientGetOptions) (resp azfake.Responder[armblueprint.AssignmentsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method AssignmentsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceScope string, options *armblueprint.AssignmentsClientListOptions) (resp azfake.PagerResponder[armblueprint.AssignmentsClientListResponse])

	// WhoIsBlueprint is the fake for method AssignmentsClient.WhoIsBlueprint
	// HTTP status codes to indicate success: http.StatusOK
	WhoIsBlueprint func(ctx context.Context, resourceScope string, assignmentName string, options *armblueprint.AssignmentsClientWhoIsBlueprintOptions) (resp azfake.Responder[armblueprint.AssignmentsClientWhoIsBlueprintResponse], errResp azfake.ErrorResponder)
}

AssignmentsServer is a fake server for instances of the armblueprint.AssignmentsClient type.

type AssignmentsServerTransport

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

AssignmentsServerTransport connects instances of armblueprint.AssignmentsClient to instances of AssignmentsServer. Don't use this type directly, use NewAssignmentsServerTransport instead.

func NewAssignmentsServerTransport

func NewAssignmentsServerTransport(srv *AssignmentsServer) *AssignmentsServerTransport

NewAssignmentsServerTransport creates a new instance of AssignmentsServerTransport with the provided implementation. The returned AssignmentsServerTransport instance is connected to an instance of armblueprint.AssignmentsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AssignmentsServerTransport) Do

Do implements the policy.Transporter interface for AssignmentsServerTransport.

type BlueprintsServer

type BlueprintsServer struct {
	// CreateOrUpdate is the fake for method BlueprintsClient.CreateOrUpdate
	// HTTP status codes to indicate success: http.StatusCreated
	CreateOrUpdate func(ctx context.Context, resourceScope string, blueprintName string, blueprint armblueprint.Blueprint, options *armblueprint.BlueprintsClientCreateOrUpdateOptions) (resp azfake.Responder[armblueprint.BlueprintsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method BlueprintsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceScope string, blueprintName string, options *armblueprint.BlueprintsClientDeleteOptions) (resp azfake.Responder[armblueprint.BlueprintsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method BlueprintsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceScope string, blueprintName string, options *armblueprint.BlueprintsClientGetOptions) (resp azfake.Responder[armblueprint.BlueprintsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method BlueprintsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceScope string, options *armblueprint.BlueprintsClientListOptions) (resp azfake.PagerResponder[armblueprint.BlueprintsClientListResponse])
}

BlueprintsServer is a fake server for instances of the armblueprint.BlueprintsClient type.

type BlueprintsServerTransport

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

BlueprintsServerTransport connects instances of armblueprint.BlueprintsClient to instances of BlueprintsServer. Don't use this type directly, use NewBlueprintsServerTransport instead.

func NewBlueprintsServerTransport

func NewBlueprintsServerTransport(srv *BlueprintsServer) *BlueprintsServerTransport

NewBlueprintsServerTransport creates a new instance of BlueprintsServerTransport with the provided implementation. The returned BlueprintsServerTransport instance is connected to an instance of armblueprint.BlueprintsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*BlueprintsServerTransport) Do

Do implements the policy.Transporter interface for BlueprintsServerTransport.

type PublishedArtifactsServer

type PublishedArtifactsServer struct {
	// Get is the fake for method PublishedArtifactsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceScope string, blueprintName string, versionID string, artifactName string, options *armblueprint.PublishedArtifactsClientGetOptions) (resp azfake.Responder[armblueprint.PublishedArtifactsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PublishedArtifactsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceScope string, blueprintName string, versionID string, options *armblueprint.PublishedArtifactsClientListOptions) (resp azfake.PagerResponder[armblueprint.PublishedArtifactsClientListResponse])
}

PublishedArtifactsServer is a fake server for instances of the armblueprint.PublishedArtifactsClient type.

type PublishedArtifactsServerTransport

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

PublishedArtifactsServerTransport connects instances of armblueprint.PublishedArtifactsClient to instances of PublishedArtifactsServer. Don't use this type directly, use NewPublishedArtifactsServerTransport instead.

func NewPublishedArtifactsServerTransport

func NewPublishedArtifactsServerTransport(srv *PublishedArtifactsServer) *PublishedArtifactsServerTransport

NewPublishedArtifactsServerTransport creates a new instance of PublishedArtifactsServerTransport with the provided implementation. The returned PublishedArtifactsServerTransport instance is connected to an instance of armblueprint.PublishedArtifactsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PublishedArtifactsServerTransport) Do

Do implements the policy.Transporter interface for PublishedArtifactsServerTransport.

type PublishedBlueprintsServer

type PublishedBlueprintsServer struct {
	// Create is the fake for method PublishedBlueprintsClient.Create
	// HTTP status codes to indicate success: http.StatusCreated
	Create func(ctx context.Context, resourceScope string, blueprintName string, versionID string, options *armblueprint.PublishedBlueprintsClientCreateOptions) (resp azfake.Responder[armblueprint.PublishedBlueprintsClientCreateResponse], errResp azfake.ErrorResponder)

	// Delete is the fake for method PublishedBlueprintsClient.Delete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusNoContent
	Delete func(ctx context.Context, resourceScope string, blueprintName string, versionID string, options *armblueprint.PublishedBlueprintsClientDeleteOptions) (resp azfake.Responder[armblueprint.PublishedBlueprintsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method PublishedBlueprintsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceScope string, blueprintName string, versionID string, options *armblueprint.PublishedBlueprintsClientGetOptions) (resp azfake.Responder[armblueprint.PublishedBlueprintsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method PublishedBlueprintsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceScope string, blueprintName string, options *armblueprint.PublishedBlueprintsClientListOptions) (resp azfake.PagerResponder[armblueprint.PublishedBlueprintsClientListResponse])
}

PublishedBlueprintsServer is a fake server for instances of the armblueprint.PublishedBlueprintsClient type.

type PublishedBlueprintsServerTransport

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

PublishedBlueprintsServerTransport connects instances of armblueprint.PublishedBlueprintsClient to instances of PublishedBlueprintsServer. Don't use this type directly, use NewPublishedBlueprintsServerTransport instead.

func NewPublishedBlueprintsServerTransport

func NewPublishedBlueprintsServerTransport(srv *PublishedBlueprintsServer) *PublishedBlueprintsServerTransport

NewPublishedBlueprintsServerTransport creates a new instance of PublishedBlueprintsServerTransport with the provided implementation. The returned PublishedBlueprintsServerTransport instance is connected to an instance of armblueprint.PublishedBlueprintsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*PublishedBlueprintsServerTransport) Do

Do implements the policy.Transporter interface for PublishedBlueprintsServerTransport.

type ServerFactory

type ServerFactory struct {
	ArtifactsServer            ArtifactsServer
	AssignmentOperationsServer AssignmentOperationsServer
	AssignmentsServer          AssignmentsServer
	BlueprintsServer           BlueprintsServer
	PublishedArtifactsServer   PublishedArtifactsServer
	PublishedBlueprintsServer  PublishedBlueprintsServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armblueprint.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 armblueprint.ClientFactory via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ServerFactoryTransport) Do

Do implements the policy.Transporter interface for ServerFactoryTransport.

Jump to

Keyboard shortcuts

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