fake

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomPoolsServer

type CustomPoolsServer struct {
	// CreateWorkspaceCustomPool is the fake for method CustomPoolsClient.CreateWorkspaceCustomPool
	// HTTP status codes to indicate success: http.StatusCreated
	CreateWorkspaceCustomPool func(ctx context.Context, workspaceID string, createCustomPoolRequest spark.CreateCustomPoolRequest, options *spark.CustomPoolsClientCreateWorkspaceCustomPoolOptions) (resp azfake.Responder[spark.CustomPoolsClientCreateWorkspaceCustomPoolResponse], errResp azfake.ErrorResponder)

	// DeleteWorkspaceCustomPool is the fake for method CustomPoolsClient.DeleteWorkspaceCustomPool
	// HTTP status codes to indicate success: http.StatusOK
	DeleteWorkspaceCustomPool func(ctx context.Context, workspaceID string, poolID string, options *spark.CustomPoolsClientDeleteWorkspaceCustomPoolOptions) (resp azfake.Responder[spark.CustomPoolsClientDeleteWorkspaceCustomPoolResponse], errResp azfake.ErrorResponder)

	// GetWorkspaceCustomPool is the fake for method CustomPoolsClient.GetWorkspaceCustomPool
	// HTTP status codes to indicate success: http.StatusOK
	GetWorkspaceCustomPool func(ctx context.Context, workspaceID string, poolID string, options *spark.CustomPoolsClientGetWorkspaceCustomPoolOptions) (resp azfake.Responder[spark.CustomPoolsClientGetWorkspaceCustomPoolResponse], errResp azfake.ErrorResponder)

	// NewListWorkspaceCustomPoolsPager is the fake for method CustomPoolsClient.NewListWorkspaceCustomPoolsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListWorkspaceCustomPoolsPager func(workspaceID string, options *spark.CustomPoolsClientListWorkspaceCustomPoolsOptions) (resp azfake.PagerResponder[spark.CustomPoolsClientListWorkspaceCustomPoolsResponse])

	// UpdateWorkspaceCustomPool is the fake for method CustomPoolsClient.UpdateWorkspaceCustomPool
	// HTTP status codes to indicate success: http.StatusOK
	UpdateWorkspaceCustomPool func(ctx context.Context, workspaceID string, poolID string, updateCustomPoolRequest spark.UpdateCustomPoolRequest, options *spark.CustomPoolsClientUpdateWorkspaceCustomPoolOptions) (resp azfake.Responder[spark.CustomPoolsClientUpdateWorkspaceCustomPoolResponse], errResp azfake.ErrorResponder)
}

CustomPoolsServer is a fake server for instances of the spark.CustomPoolsClient type.

type CustomPoolsServerTransport

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

CustomPoolsServerTransport connects instances of spark.CustomPoolsClient to instances of CustomPoolsServer. Don't use this type directly, use NewCustomPoolsServerTransport instead.

func NewCustomPoolsServerTransport

func NewCustomPoolsServerTransport(srv *CustomPoolsServer) *CustomPoolsServerTransport

NewCustomPoolsServerTransport creates a new instance of CustomPoolsServerTransport with the provided implementation. The returned CustomPoolsServerTransport instance is connected to an instance of spark.CustomPoolsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*CustomPoolsServerTransport) Do

Do implements the policy.Transporter interface for CustomPoolsServerTransport.

type LivySessionsServer

type LivySessionsServer struct {
	// NewListLivySessionsPager is the fake for method LivySessionsClient.NewListLivySessionsPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListLivySessionsPager func(workspaceID string, options *spark.LivySessionsClientListLivySessionsOptions) (resp azfake.PagerResponder[spark.LivySessionsClientListLivySessionsResponse])
}

LivySessionsServer is a fake server for instances of the spark.LivySessionsClient type.

type LivySessionsServerTransport

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

LivySessionsServerTransport connects instances of spark.LivySessionsClient to instances of LivySessionsServer. Don't use this type directly, use NewLivySessionsServerTransport instead.

func NewLivySessionsServerTransport

func NewLivySessionsServerTransport(srv *LivySessionsServer) *LivySessionsServerTransport

NewLivySessionsServerTransport creates a new instance of LivySessionsServerTransport with the provided implementation. The returned LivySessionsServerTransport instance is connected to an instance of spark.LivySessionsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*LivySessionsServerTransport) Do

Do implements the policy.Transporter interface for LivySessionsServerTransport.

type ServerFactory

type ServerFactory struct {
	CustomPoolsServer       CustomPoolsServer
	LivySessionsServer      LivySessionsServer
	WorkspaceSettingsServer WorkspaceSettingsServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of spark.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 spark.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 WorkspaceSettingsServer

type WorkspaceSettingsServer struct {
	// GetSparkSettings is the fake for method WorkspaceSettingsClient.GetSparkSettings
	// HTTP status codes to indicate success: http.StatusOK
	GetSparkSettings func(ctx context.Context, workspaceID string, options *spark.WorkspaceSettingsClientGetSparkSettingsOptions) (resp azfake.Responder[spark.WorkspaceSettingsClientGetSparkSettingsResponse], errResp azfake.ErrorResponder)

	// UpdateSparkSettings is the fake for method WorkspaceSettingsClient.UpdateSparkSettings
	// HTTP status codes to indicate success: http.StatusOK
	UpdateSparkSettings func(ctx context.Context, workspaceID string, updateWorkspaceSettingsRequest spark.UpdateWorkspaceSparkSettingsRequest, options *spark.WorkspaceSettingsClientUpdateSparkSettingsOptions) (resp azfake.Responder[spark.WorkspaceSettingsClientUpdateSparkSettingsResponse], errResp azfake.ErrorResponder)
}

WorkspaceSettingsServer is a fake server for instances of the spark.WorkspaceSettingsClient type.

type WorkspaceSettingsServerTransport

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

WorkspaceSettingsServerTransport connects instances of spark.WorkspaceSettingsClient to instances of WorkspaceSettingsServer. Don't use this type directly, use NewWorkspaceSettingsServerTransport instead.

func NewWorkspaceSettingsServerTransport

func NewWorkspaceSettingsServerTransport(srv *WorkspaceSettingsServer) *WorkspaceSettingsServerTransport

NewWorkspaceSettingsServerTransport creates a new instance of WorkspaceSettingsServerTransport with the provided implementation. The returned WorkspaceSettingsServerTransport instance is connected to an instance of spark.WorkspaceSettingsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*WorkspaceSettingsServerTransport) Do

Do implements the policy.Transporter interface for WorkspaceSettingsServerTransport.

Jump to

Keyboard shortcuts

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