Documentation ¶
Index ¶
- func CreateOAuthSession(ctx context.Context, p *CreateOAuthSessionParams) (authURL string, err error)
- func DBConnect(ctx context.Context, appSlug, envSlug, dbName string, startupData []byte) (*websocket.Conn, error)
- func EnvLogs(ctx context.Context, appSlug, envSlug string) (*websocket.Conn, error)
- func GetAppSecrets(ctx context.Context, appSlug string, poll bool, kind SecretKind) (secrets map[string]string, err error)
- func GetEnvMeta(ctx context.Context, appSlug, envName string) (*metav1.Data, error)
- type App
- type CreateAppParams
- type CreateOAuthSessionParams
- type Error
- type ExchangeAuthKeyParams
- type ExchangeOAuthTokenParams
- type OAuthData
- type SecretKind
- type SecretVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOAuthSession ¶
func CreateOAuthSession(ctx context.Context, p *CreateOAuthSessionParams) (authURL string, err error)
func GetAppSecrets ¶
Types ¶
type App ¶
type CreateAppParams ¶
type CreateAppParams struct {
Name string `json:"name"`
}
type Error ¶
type Error struct { HTTPStatus string `json:"-"` HTTPCode int `json:"-"` Code string Detail json.RawMessage }
type ExchangeAuthKeyParams ¶
type ExchangeAuthKeyParams struct {
AuthKey string `json:"auth_key"`
}
type OAuthData ¶
type OAuthData struct { Token *oauth2.Token `json:"token"` Email string `json:"email"` // empty if logging in as an app AppSlug string `json:"app_slug"` // empty if logging in as a user }
func ExchangeAuthKey ¶
func ExchangeAuthKey(ctx context.Context, p *ExchangeAuthKeyParams) (*OAuthData, error)
func ExchangeOAuthToken ¶
func ExchangeOAuthToken(ctx context.Context, p *ExchangeOAuthTokenParams) (*OAuthData, error)
type SecretKind ¶
type SecretKind string
const ( DevelopmentSecrets SecretKind = "development" ProductionSecrets SecretKind = "production" )
type SecretVersion ¶
func SetAppSecret ¶
func SetAppSecret(ctx context.Context, appSlug string, kind SecretKind, secretKey, value string) (*SecretVersion, error)
Click to show internal directories.
Click to hide internal directories.