Documentation
¶
Index ¶
- Constants
- Variables
- func DeleteSecret(ctx context.Context, args *DeleteSecretArgs) error
- func GetLogLevel(ctx context.Context) int
- func GetSecret(ctx context.Context, args *GetSecretArgs) (*types.Parameter, error)
- func ListSecrets(ctx context.Context, args *ListSecretsArgs) ([]types.Parameter, error)
- func ResolveKeelConfig(ctx context.Context, args *ResolveKeelConfigArgs) (*config.ConfigFile, error)
- func Run(ctx context.Context, args *RunArgs) error
- func SetSecret(ctx context.Context, args *SetSecretArgs) error
- func StreamLogs(ctx context.Context, args *StreamLogsArgs) error
- func WithLogLevel(ctx context.Context, level int) context.Context
- type AwsIdentityResult
- type BuildArgs
- type BuildCollectorConfigArgs
- type BuildFunctionsArgs
- type BuildFunctionsResult
- type BuildResult
- type BuildRuntimeArgs
- type BuildRuntimeResult
- type CreatePrivateKeySecretArgs
- type CreateRDSResourcesArgs
- type CreateRDSResourcesResult
- type DeleteSecretArgs
- type GetSecretArgs
- type GetStackOutputsArgs
- type ListSecretsArgs
- type LogLevelContextKey
- type NewProgramArgs
- type PulumiConfig
- type ResolveKeelConfigArgs
- type RunArgs
- type RunMigrationsArgs
- type SecretSetupArgs
- type SecretSetupResult
- type SelectStackArgs
- type SetSecretArgs
- type SetupPulumiArgs
- type StackOutputs
- type StreamLogsArgs
- type Timing
Constants ¶
View Source
const ( LogLevelDefault = iota LogLevelSilent )
View Source
const ( UpAction = "up" RemoveAction = "remove" )
View Source
const ( StackOutputApiURL = "apiUrl" StackOutputDatabaseEndpoint = "databaseEndpoint" StackOutputDatabaseDbName = "databaseDbName" StackOutputDatabaseSecretArn = "databaseSecretArn" StackOutputApiLambdaName = "apiLambdaName" StackOutputSubscriberLambdaName = "subscriberLambdaName" StackOutputJobsLambdaName = "jobsLambdaName" StackOutputFunctionsLambdaName = "functionsLambdaName" )
Variables ¶
Functions ¶
func DeleteSecret ¶
func DeleteSecret(ctx context.Context, args *DeleteSecretArgs) error
func GetLogLevel ¶ added in v0.410.2
func ListSecrets ¶
func ResolveKeelConfig ¶
func ResolveKeelConfig(ctx context.Context, args *ResolveKeelConfigArgs) (*config.ConfigFile, error)
func StreamLogs ¶
func StreamLogs(ctx context.Context, args *StreamLogsArgs) error
TODO: refactor this function to use an error channel
Types ¶
type AwsIdentityResult ¶
type BuildArgs ¶
type BuildArgs struct {
// Absolute path to Keel project
ProjectRoot string
Env string
// Where to pull the pre-built runtime binary from. Can be an absolute local path or a URL.
RuntimeBinary string
// A hook for modifying the schema after it's been loaded and validated. Our main use-case
// for this is in integration tests where we make an API containing all models/actions.
OnLoadSchema func(s *proto.Schema) *proto.Schema
}
type BuildCollectorConfigArgs ¶
type BuildCollectorConfigArgs struct {
ProjectRoot string
Env string
Config *config.ProjectConfig
}
type BuildFunctionsArgs ¶
type BuildFunctionsResult ¶
type BuildFunctionsResult struct {
// Path to directory containing build for functions Lambda
Path string
}
type BuildResult ¶
type BuildRuntimeArgs ¶
type BuildRuntimeArgs struct {
// Absolute path of Keel project being built
ProjectRoot string
Env string
Schema *proto.Schema
Config *config.ProjectConfig
// Where to pull the pre-built runtime binary from. Can be a local path or URL.
RuntimeBinaryURL string
// A YAML string containing an OTEL collector config.
CollectorConfig *string
}
type BuildRuntimeResult ¶
type CreateRDSResourcesArgs ¶
type CreateRDSResourcesArgs struct {
Config *config.ProjectConfig
Env string
BaseTags pulumi.StringMap
}
type CreateRDSResourcesResult ¶
type CreateRDSResourcesResult struct {
Instance *rds.Instance
SecretARN pulumi.StringPtrOutput
}
type DeleteSecretArgs ¶
type GetSecretArgs ¶
type GetStackOutputsArgs ¶
type GetStackOutputsArgs struct {
Config *config.ProjectConfig
PulumiConfig *PulumiConfig
}
type ListSecretsArgs ¶
type LogLevelContextKey ¶ added in v0.410.2
type LogLevelContextKey string
type NewProgramArgs ¶
type PulumiConfig ¶
type PulumiConfig struct {
StackName string
WorkspaceOptions []auto.LocalWorkspaceOption
}
type ResolveKeelConfigArgs ¶
type RunMigrationsArgs ¶
type SecretSetupArgs ¶
type SecretSetupArgs struct {
// contains filtered or unexported fields
}
type SecretSetupResult ¶
type SecretSetupResult struct {
// contains filtered or unexported fields
}
type SelectStackArgs ¶
type SetSecretArgs ¶
type SetupPulumiArgs ¶
type SetupPulumiArgs struct {
AwsConfig aws.Config
Config *config.ProjectConfig
Env string
}
type StackOutputs ¶
type StreamLogsArgs ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.