service

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 3 Imported by: 0

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