Documentation ¶
Index ¶
- type App
- type AppsClient
- func (c *AppsClient) Create(ctx context.Context, orgSlug *string, appName string, network *string) error
- func (c *AppsClient) Delete(ctx context.Context, orgSlug *string, appName string) error
- func (c *AppsClient) Get(ctx context.Context, orgSlug *string, appName string) (*App, error)
- func (c *AppsClient) List(ctx context.Context, orgSlug *string) (*ListAppsResponse, error)
- type Client
- type Config
- type ConfigOption
- type CreateAppRequest
- type ErrorResponse
- type ListApp
- type ListAppsResponse
- type MissingBasePathError
- type MissingClientError
- type MissingHostError
- type MissingOrgSlugError
- type MissingTokenError
- type Organization
- type RequestFailedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { Name string `json:"name"` Organization Organization `json:"organization"` Status string `json:"status"` }
type AppsClient ¶
type AppsClient struct {
// contains filtered or unexported fields
}
func (*AppsClient) List ¶
func (c *AppsClient) List(ctx context.Context, orgSlug *string) (*ListAppsResponse, error)
type Client ¶
type Client struct { Apps *AppsClient // contains filtered or unexported fields }
type Config ¶
type Config struct { Host string BasePath string Client *http.Client Token string DefaultOrgSlug string // contains filtered or unexported fields }
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) WithOptions ¶
func (c *Config) WithOptions(opts ...ConfigOption) *Config
type ConfigOption ¶
type ConfigOption func(*Config)
func WithBasePath ¶
func WithBasePath(basePath string) ConfigOption
func WithClient ¶
func WithClient(client *http.Client) ConfigOption
func WithDefaultOrgSlug ¶
func WithDefaultOrgSlug(org string) ConfigOption
func WithHost ¶
func WithHost(host string) ConfigOption
func WithToken ¶
func WithToken(token string) ConfigOption
type CreateAppRequest ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type ListAppsResponse ¶
type MissingBasePathError ¶
type MissingBasePathError struct{}
func (MissingBasePathError) Error ¶
func (e MissingBasePathError) Error() string
type MissingClientError ¶
type MissingClientError struct{}
func (MissingClientError) Error ¶
func (e MissingClientError) Error() string
type MissingHostError ¶
type MissingHostError struct{}
func (MissingHostError) Error ¶
func (e MissingHostError) Error() string
type MissingOrgSlugError ¶
type MissingOrgSlugError struct{}
func (MissingOrgSlugError) Error ¶
func (e MissingOrgSlugError) Error() string
type MissingTokenError ¶
type MissingTokenError struct{}
func (MissingTokenError) Error ¶
func (e MissingTokenError) Error() string
type Organization ¶
type RequestFailedError ¶
type RequestFailedError struct {
Reason string
}
func (RequestFailedError) Error ¶
func (e RequestFailedError) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.