Documentation ¶
Index ¶
- func CreateOAuthSession(ctx context.Context, p *CreateOAuthSessionParams) (authURL string, err error)
- func CreateSecretGroup(ctx context.Context, p CreateSecretGroupParams) error
- func CreateSecretVersion(ctx context.Context, p CreateSecretVersionParams) 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 GetEnvMeta(ctx context.Context, appSlug, envName string) (*metav1.Data, error)
- func GetLocalSecretValues(ctx context.Context, appSlug string, poll bool) (secrets map[string]string, err error)
- func ListSecretGroups(ctx context.Context, appSlug string, keys []string) ([]*gql.Secret, error)
- func UpdateSecretGroup(ctx context.Context, p UpdateSecretGroupParams) error
- type App
- type CreateAppParams
- type CreateOAuthSessionParams
- type CreateSecretGroupParams
- type CreateSecretVersionParams
- type Env
- type Error
- type ExchangeAuthKeyParams
- type ExchangeOAuthTokenParams
- type InterfaceCodecExtension
- type OAuthData
- type SecretKind
- type SecretVersion
- type UpdateSecretGroupParams
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 CreateSecretGroup ¶ added in v1.13.0
func CreateSecretGroup(ctx context.Context, p CreateSecretGroupParams) error
func CreateSecretVersion ¶ added in v1.13.0
func CreateSecretVersion(ctx context.Context, p CreateSecretVersionParams) error
func GetEnvMeta ¶
func GetLocalSecretValues ¶ added in v1.13.0
func ListSecretGroups ¶ added in v1.13.0
func UpdateSecretGroup ¶ added in v1.13.0
func UpdateSecretGroup(ctx context.Context, p UpdateSecretGroupParams) error
Types ¶
type App ¶
type CreateAppParams ¶
type CreateSecretGroupParams ¶ added in v1.13.0
type CreateSecretVersionParams ¶ added in v1.13.0
type Env ¶ added in v1.3.0
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 InterfaceCodecExtension ¶ added in v1.13.0
type InterfaceCodecExtension struct {
jsoniter.DummyExtension
}
InterfaceCodecExtension is used to decode interface fields it'll store the type of the values in a wrapper object
func NewInterfaceCodecExtension ¶ added in v1.13.0
func NewInterfaceCodecExtension() *InterfaceCodecExtension
func (*InterfaceCodecExtension) DecorateDecoder ¶ added in v1.13.0
func (e *InterfaceCodecExtension) DecorateDecoder(typ reflect2.Type, decoder jsoniter.ValDecoder) jsoniter.ValDecoder
type OAuthData ¶
type OAuthData struct { Token *oauth2.Token `json:"token"` Actor string `json:"actor,omitempty"` // The ID of the user or app that authorized the 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)
type UpdateSecretGroupParams ¶ added in v1.13.0
Click to show internal directories.
Click to hide internal directories.