Documentation ¶
Index ¶
- type ArchivedServices
- type Client
- func (c *Client) Clone() common.Client
- func (c *Client) Do(req *http.Request, v interface{}, errorHandlers ...func(*http.Response) error) (*http.Response, error)
- func (c *Client) GetBaseURL() string
- func (c *Client) GetConfig() Config
- func (c *Client) GetHTTPClient() *http.Client
- func (c *Client) Request(ctx context.Context, method, path string, body []byte) (*http.Request, error)
- func (c *Client) Retry() *retry.Retry
- func (c *Client) SetBaseURL(url string) error
- func (c *Client) SetRetry(r *retry.Retry)
- func (c *Client) SetToken(token string)
- type Config
- type DataServices
- type IncubatorServices
- type ProductiveServices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchivedServices ¶ added in v1.0.0
type ArchivedServices struct {
ResourceManagementV1 *resourceManagementV1.ResourceManagementV1Service
}
ArchivedServices is used for services that are being phased out
type Client ¶
type Client struct { // Productive services - services that are ready to be used in production ProductiveServices // Incubator - services under development or currently being tested // not ready for production usage Incubator IncubatorServices // Archived - for services that are phased out Archived ArchivedServices // contains filtered or unexported fields }
Client service for managing interactions with STACKIT API
func MockServer ¶
MockServer mocks STACKIT api server and returns a client pointing to it, mux, teardown function and an error indicator
func (*Client) Do ¶
func (c *Client) Do(req *http.Request, v interface{}, errorHandlers ...func(*http.Response) error) (*http.Response, error)
Do performs the request, including retry if set To set retry, use WithRetry() which returns a shalow copy of the client
func (*Client) GetBaseURL ¶ added in v1.1.0
GetBaseURL returns the base url string
func (*Client) GetHTTPClient ¶
GetHTTPClient returns the HTTP client
func (*Client) Request ¶
func (c *Client) Request(ctx context.Context, method, path string, body []byte) (*http.Request, error)
Request creates a new API request
func (*Client) SetBaseURL ¶ added in v1.1.0
SetBaseURL sets the base url
type Config ¶
Config is the STACKIT client configuration
type DataServices ¶ added in v1.1.0
type DataServices struct { ElasticSearch *dataservices.DataServicesService LogMe *dataservices.DataServicesService MariaDB *dataservices.DataServicesService PostgresDB *dataservices.DataServicesService RabbitMQ *dataservices.DataServicesService Redis *dataservices.DataServicesService }
type IncubatorServices ¶
type IncubatorServices struct { MongoDB *mongodb.MongoDBService Postgres *postgres.PostgresService }
IncubatorServices is the struct representing all services that are under development
type ProductiveServices ¶
type ProductiveServices struct { Argus *argus.ArgusService Costs *costs.CostsService Kubernetes *kubernetes.KubernetesService Membership *membership.MembershipService ObjectStorage *objectstorage.ObjectStorageService ResourceManagement *resourceManagement.ResourceManagementService DataServices DataServices }
ProductiveServices is the struct representing all productive services
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
internal
|
|
common
client file in package common holds the client interface and service struct used by each service that the client is connecting with services using the Service struct are located under pkg/api
|
client file in package common holds the client interface and service struct used by each service that the client is connecting with services using the Service struct are located under pkg/api |
pkg
|
|
api/v2/membership/roles
package roles is used for creating and managing custom roles (and permissions assigned to them)
|
package roles is used for creating and managing custom roles (and permissions assigned to them) |