api

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CCClient

type CCClient interface {
	AppsAndServices(spaceId string) (models.AppsAndServices, error)
	OrgUsage(orgId string) (models.OrgUsage, error)
}

func NewCCClient

func NewCCClient(endpoint string, client *rest.Client) CCClient

type CCError

type CCError struct {
	Code        int    `json:"code"`
	Description string `json:"description"`
}

func (CCError) Error

func (c CCError) Error() string

type ContainerClient

type ContainerClient interface {
	Containers(spaceId string) ([]models.Container, error)
	ContainersQuotaAndUsage(spaceId string) (models.ContainersQuotaAndUsage, error)
}

func NewContainerClient

func NewContainerClient(endpoint string, client *rest.Client) ContainerClient

type ContainerError

type ContainerError struct {
	Code        string `json:"code"`
	StatusCode  string `json:"rc"`
	Description string `json:"description"`
	IncidentId  string `json:"incident_id"`
}

func (ContainerError) Error

func (e ContainerError) Error() string

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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