service

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudPartnerServicer

type CloudPartnerServicer interface {
	ListOffers(ctx context.Context, params partner.ListOffersParams) ([]partner.Offer, error)
	GetOfferBySlot(ctx context.Context, params partner.ShowOfferBySlotParams) (*partner.Offer, error)
	GetOfferByVersion(ctx context.Context, params partner.ShowOfferByVersionParams) (*partner.Offer, error)
	GetOffer(ctx context.Context, params partner.ShowOfferParams) (*partner.Offer, error)
	GoLiveWithOffer(ctx context.Context, params partner.GoLiveParams) (string, error)
	GetOfferStatus(ctx context.Context, params partner.ShowOfferParams) (*partner.OfferStatus, error)
	PutOffer(ctx context.Context, offer *partner.Offer) (*partner.Offer, error)
	PublishOffer(ctx context.Context, params partner.PublishOfferParams) (string, error)

	ListOperations(ctx context.Context, params partner.ListOperationsParams) ([]partner.Operation, error)
	CancelOperation(ctx context.Context, params partner.CancelOperationParams) (string, error)
	GetOperationByURI(ctx context.Context, opURI string) (*partner.OperationDetail, error)
	GetOperation(ctx context.Context, params partner.GetOperationParams) (*partner.OperationDetail, error)

	ListPublishers(ctx context.Context) ([]partner.Publisher, error)
}

CloudPartnerServicer provides Azure Cloud Partner functionality

type CommandServicer

type CommandServicer interface {
	GetCloudPartnerService() (CloudPartnerServicer, error)
	GetPrinter() format.Printer
}

CommandServicer provides all functionality needed for command execution

type Registry

type Registry struct {
	CloudPartnerServicerFactory func() (CloudPartnerServicer, error)
	PrinterFactory              func() format.Printer
}

Registry holds the factories and services needed for command execution

func (*Registry) GetCloudPartnerService

func (r *Registry) GetCloudPartnerService() (CloudPartnerServicer, error)

GetCloudPartnerService will return a CloudPartnerServicer for interacting with Azure

func (*Registry) GetPrinter

func (r *Registry) GetPrinter() format.Printer

GetPrinter will return a printer for printing command output

Jump to

Keyboard shortcuts

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