Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotKubernetesPool = errors.New("not a kubernetes pool") ErrClusterNotFound = errors.New("cluster not found") )
Functions ¶
func MetricsRoundTripper ¶
func MetricsRoundTripper(next http.RoundTripper) http.RoundTripper
Types ¶
type BaseHTTPClient ¶
type BaseHTTPClient struct { sync.RWMutex Timeout time.Duration URL string User string Password string Token string OAuthURL string OAuthId string OAuthSecret string Logger logrus.FieldLogger // contains filtered or unexported fields }
func (*BaseHTTPClient) DoRequestData ¶
func (*BaseHTTPClient) DoRequestDataCtx ¶
type TsuruClient ¶
type TsuruClient interface { PoolCluster(tsuruPool pool.Pool) (*provTypes.Cluster, error) Cluster(clusterName string) (*provTypes.Cluster, error) JobInfo(jobName string) (*jobTypes.Job, error) AppInfo(appName string) (*app.App, error) PoolInfo(poolName string) (*pool.Pool, error) Clusters() ([]provTypes.Cluster, error) }
func NewTsuruClient ¶
func NewTsuruClient() TsuruClient
Click to show internal directories.
Click to hide internal directories.