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 BeginAuthorizationFlowParams
- type BeginAuthorizationFlowResponse
- type CreateAppParams
- type CreateOAuthSessionParams
- type CreateSecretGroupParams
- type CreateSecretVersionParams
- type Env
- type Error
- type ExchangeAuthKeyParams
- type ExchangeOAuthTokenParams
- type InterfaceCodecExtension
- type OAuthData
- type OAuthToken
- type PollDeviceAuthFlowParams
- 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 BeginAuthorizationFlowParams ¶ added in v1.21.1
type BeginAuthorizationFlowResponse ¶ added in v1.21.1
type BeginAuthorizationFlowResponse struct { // DeviceCode is the device verification code. DeviceCode string `json:"device_code"` // UserCode is the end-user verification code. UserCode string `json:"user_code"` // VerificationURI is the end-user URL to use to login. VerificationURI string `json:"verification_uri"` // ExpiresIn is the lifetime in seconds of the device code and user code. ExpiresIn int `json:"expires_in"` // Interval is the number of seconds to wait between polling requests. // If not provided, defaults to 5. Interval int `json:"interval,omitempty"` }
func BeginDeviceAuthFlow ¶ added in v1.21.1
func BeginDeviceAuthFlow(ctx context.Context, p BeginAuthorizationFlowParams) (*BeginAuthorizationFlowResponse, error)
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 OAuthToken ¶ added in v1.21.1
type OAuthToken struct { *oauth2.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 PollDeviceAuthFlow ¶ added in v1.21.1
func PollDeviceAuthFlow(ctx context.Context, p PollDeviceAuthFlowParams) (*OAuthToken, error)
type PollDeviceAuthFlowParams ¶ added in v1.21.1
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.