fake

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 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 AvailableGroundStationsServer

type AvailableGroundStationsServer struct {
	// NewListByCapabilityPager is the fake for method AvailableGroundStationsClient.NewListByCapabilityPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListByCapabilityPager func(capability armorbital.CapabilityParameter, options *armorbital.AvailableGroundStationsClientListByCapabilityOptions) (resp azfake.PagerResponder[armorbital.AvailableGroundStationsClientListByCapabilityResponse])
}

AvailableGroundStationsServer is a fake server for instances of the armorbital.AvailableGroundStationsClient type.

type AvailableGroundStationsServerTransport

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

AvailableGroundStationsServerTransport connects instances of armorbital.AvailableGroundStationsClient to instances of AvailableGroundStationsServer. Don't use this type directly, use NewAvailableGroundStationsServerTransport instead.

func NewAvailableGroundStationsServerTransport

func NewAvailableGroundStationsServerTransport(srv *AvailableGroundStationsServer) *AvailableGroundStationsServerTransport

NewAvailableGroundStationsServerTransport creates a new instance of AvailableGroundStationsServerTransport with the provided implementation. The returned AvailableGroundStationsServerTransport instance is connected to an instance of armorbital.AvailableGroundStationsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*AvailableGroundStationsServerTransport) Do

Do implements the policy.Transporter interface for AvailableGroundStationsServerTransport.

type ContactProfilesServer

type ContactProfilesServer struct {
	// BeginCreateOrUpdate is the fake for method ContactProfilesClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, contactProfileName string, parameters armorbital.ContactProfile, options *armorbital.ContactProfilesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armorbital.ContactProfilesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ContactProfilesClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, contactProfileName string, options *armorbital.ContactProfilesClientBeginDeleteOptions) (resp azfake.PollerResponder[armorbital.ContactProfilesClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ContactProfilesClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, contactProfileName string, options *armorbital.ContactProfilesClientGetOptions) (resp azfake.Responder[armorbital.ContactProfilesClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ContactProfilesClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, options *armorbital.ContactProfilesClientListOptions) (resp azfake.PagerResponder[armorbital.ContactProfilesClientListResponse])

	// NewListBySubscriptionPager is the fake for method ContactProfilesClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armorbital.ContactProfilesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armorbital.ContactProfilesClientListBySubscriptionResponse])

	// BeginUpdateTags is the fake for method ContactProfilesClient.BeginUpdateTags
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdateTags func(ctx context.Context, resourceGroupName string, contactProfileName string, parameters armorbital.TagsObject, options *armorbital.ContactProfilesClientBeginUpdateTagsOptions) (resp azfake.PollerResponder[armorbital.ContactProfilesClientUpdateTagsResponse], errResp azfake.ErrorResponder)
}

ContactProfilesServer is a fake server for instances of the armorbital.ContactProfilesClient type.

type ContactProfilesServerTransport

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

ContactProfilesServerTransport connects instances of armorbital.ContactProfilesClient to instances of ContactProfilesServer. Don't use this type directly, use NewContactProfilesServerTransport instead.

func NewContactProfilesServerTransport

func NewContactProfilesServerTransport(srv *ContactProfilesServer) *ContactProfilesServerTransport

NewContactProfilesServerTransport creates a new instance of ContactProfilesServerTransport with the provided implementation. The returned ContactProfilesServerTransport instance is connected to an instance of armorbital.ContactProfilesClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ContactProfilesServerTransport) Do

Do implements the policy.Transporter interface for ContactProfilesServerTransport.

type ContactsServer

type ContactsServer struct {
	// BeginCreate is the fake for method ContactsClient.BeginCreate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreate func(ctx context.Context, resourceGroupName string, spacecraftName string, contactName string, parameters armorbital.Contact, options *armorbital.ContactsClientBeginCreateOptions) (resp azfake.PollerResponder[armorbital.ContactsClientCreateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method ContactsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, spacecraftName string, contactName string, options *armorbital.ContactsClientBeginDeleteOptions) (resp azfake.PollerResponder[armorbital.ContactsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method ContactsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, spacecraftName string, contactName string, options *armorbital.ContactsClientGetOptions) (resp azfake.Responder[armorbital.ContactsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method ContactsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, spacecraftName string, options *armorbital.ContactsClientListOptions) (resp azfake.PagerResponder[armorbital.ContactsClientListResponse])
}

ContactsServer is a fake server for instances of the armorbital.ContactsClient type.

type ContactsServerTransport

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

ContactsServerTransport connects instances of armorbital.ContactsClient to instances of ContactsServer. Don't use this type directly, use NewContactsServerTransport instead.

func NewContactsServerTransport

func NewContactsServerTransport(srv *ContactsServer) *ContactsServerTransport

NewContactsServerTransport creates a new instance of ContactsServerTransport with the provided implementation. The returned ContactsServerTransport instance is connected to an instance of armorbital.ContactsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*ContactsServerTransport) Do

Do implements the policy.Transporter interface for ContactsServerTransport.

type OperationsResultsServer

type OperationsResultsServer struct {
	// BeginGet is the fake for method OperationsResultsClient.BeginGet
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginGet func(ctx context.Context, location string, operationID string, options *armorbital.OperationsResultsClientBeginGetOptions) (resp azfake.PollerResponder[armorbital.OperationsResultsClientGetResponse], errResp azfake.ErrorResponder)
}

OperationsResultsServer is a fake server for instances of the armorbital.OperationsResultsClient type.

type OperationsResultsServerTransport

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

OperationsResultsServerTransport connects instances of armorbital.OperationsResultsClient to instances of OperationsResultsServer. Don't use this type directly, use NewOperationsResultsServerTransport instead.

func NewOperationsResultsServerTransport

func NewOperationsResultsServerTransport(srv *OperationsResultsServer) *OperationsResultsServerTransport

NewOperationsResultsServerTransport creates a new instance of OperationsResultsServerTransport with the provided implementation. The returned OperationsResultsServerTransport instance is connected to an instance of armorbital.OperationsResultsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*OperationsResultsServerTransport) Do

Do implements the policy.Transporter interface for OperationsResultsServerTransport.

type OperationsServer

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

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

type OperationsServerTransport

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

OperationsServerTransport connects instances of armorbital.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 armorbital.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 {
	AvailableGroundStationsServer AvailableGroundStationsServer
	ContactProfilesServer         ContactProfilesServer
	ContactsServer                ContactsServer
	OperationsServer              OperationsServer
	OperationsResultsServer       OperationsResultsServer
	SpacecraftsServer             SpacecraftsServer
}

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

type ServerFactoryTransport

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

ServerFactoryTransport connects instances of armorbital.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 armorbital.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 SpacecraftsServer

type SpacecraftsServer struct {
	// BeginCreateOrUpdate is the fake for method SpacecraftsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusOK, http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, spacecraftName string, parameters armorbital.Spacecraft, options *armorbital.SpacecraftsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armorbital.SpacecraftsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder)

	// BeginDelete is the fake for method SpacecraftsClient.BeginDelete
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent
	BeginDelete func(ctx context.Context, resourceGroupName string, spacecraftName string, options *armorbital.SpacecraftsClientBeginDeleteOptions) (resp azfake.PollerResponder[armorbital.SpacecraftsClientDeleteResponse], errResp azfake.ErrorResponder)

	// Get is the fake for method SpacecraftsClient.Get
	// HTTP status codes to indicate success: http.StatusOK
	Get func(ctx context.Context, resourceGroupName string, spacecraftName string, options *armorbital.SpacecraftsClientGetOptions) (resp azfake.Responder[armorbital.SpacecraftsClientGetResponse], errResp azfake.ErrorResponder)

	// NewListPager is the fake for method SpacecraftsClient.NewListPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListPager func(resourceGroupName string, options *armorbital.SpacecraftsClientListOptions) (resp azfake.PagerResponder[armorbital.SpacecraftsClientListResponse])

	// BeginListAvailableContacts is the fake for method SpacecraftsClient.BeginListAvailableContacts
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginListAvailableContacts func(ctx context.Context, resourceGroupName string, spacecraftName string, parameters armorbital.ContactParameters, options *armorbital.SpacecraftsClientBeginListAvailableContactsOptions) (resp azfake.PollerResponder[azfake.PagerResponder[armorbital.SpacecraftsClientListAvailableContactsResponse]], errResp azfake.ErrorResponder)

	// NewListBySubscriptionPager is the fake for method SpacecraftsClient.NewListBySubscriptionPager
	// HTTP status codes to indicate success: http.StatusOK
	NewListBySubscriptionPager func(options *armorbital.SpacecraftsClientListBySubscriptionOptions) (resp azfake.PagerResponder[armorbital.SpacecraftsClientListBySubscriptionResponse])

	// BeginUpdateTags is the fake for method SpacecraftsClient.BeginUpdateTags
	// HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted
	BeginUpdateTags func(ctx context.Context, resourceGroupName string, spacecraftName string, parameters armorbital.TagsObject, options *armorbital.SpacecraftsClientBeginUpdateTagsOptions) (resp azfake.PollerResponder[armorbital.SpacecraftsClientUpdateTagsResponse], errResp azfake.ErrorResponder)
}

SpacecraftsServer is a fake server for instances of the armorbital.SpacecraftsClient type.

type SpacecraftsServerTransport

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

SpacecraftsServerTransport connects instances of armorbital.SpacecraftsClient to instances of SpacecraftsServer. Don't use this type directly, use NewSpacecraftsServerTransport instead.

func NewSpacecraftsServerTransport

func NewSpacecraftsServerTransport(srv *SpacecraftsServer) *SpacecraftsServerTransport

NewSpacecraftsServerTransport creates a new instance of SpacecraftsServerTransport with the provided implementation. The returned SpacecraftsServerTransport instance is connected to an instance of armorbital.SpacecraftsClient via the azcore.ClientOptions.Transporter field in the client's constructor parameters.

func (*SpacecraftsServerTransport) Do

Do implements the policy.Transporter interface for SpacecraftsServerTransport.

Jump to

Keyboard shortcuts

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