Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServiceNotFound = errors.New("service not found")
Functions ¶
func GetPricing ¶
func GetPricing(ctx context.Context, billingService *billingv1.CloudCatalogClient, serviceName string) []*billingpb.Sku
GetPricing will collect all the pricing information for a given service and return a list of skus.
func GetServiceName ¶
func GetServiceName(ctx context.Context, billingService *billingv1.CloudCatalogClient, name string) (string, error)
GetServiceName will search for a service by the display name and return the full name. The full name is need by the GetPricing method to collect all the pricing information for a given service.
Types ¶
type FakeCloudCatalogServer ¶
type FakeCloudCatalogServer struct {
billingpb.UnimplementedCloudCatalogServer
}
func (*FakeCloudCatalogServer) ListServices ¶
func (s *FakeCloudCatalogServer) ListServices(_ context.Context, req *billingpb.ListServicesRequest) (*billingpb.ListServicesResponse, error)
func (*FakeCloudCatalogServer) ListSkus ¶
func (s *FakeCloudCatalogServer) ListSkus(_ context.Context, req *billingpb.ListSkusRequest) (*billingpb.ListSkusResponse, error)
type FakeCloudCatalogServerSlimResults ¶
type FakeCloudCatalogServerSlimResults struct {
billingpb.UnimplementedCloudCatalogServer
}
func (*FakeCloudCatalogServerSlimResults) ListServices ¶
func (s *FakeCloudCatalogServerSlimResults) ListServices(_ context.Context, req *billingpb.ListServicesRequest) (*billingpb.ListServicesResponse, error)
func (*FakeCloudCatalogServerSlimResults) ListSkus ¶
func (s *FakeCloudCatalogServerSlimResults) ListSkus(_ context.Context, req *billingpb.ListSkusRequest) (*billingpb.ListSkusResponse, error)
Click to show internal directories.
Click to hide internal directories.