status

package
v1.188.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed kong.local.crt
	KongCert string
	//go:embed kong.local.key
	KongKey string
)

Functions

func IsServiceReady added in v1.30.1

func IsServiceReady(ctx context.Context, container string) error

func NewKongClient added in v1.183.0

func NewKongClient() *http.Client

To regenerate local certificate pair:

openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 \
  -nodes -keyout kong.local.key -out kong.local.crt -subj "/CN=localhost" \
  -addext "subjectAltName=DNS:localhost,IP:127.0.0.1"

func PrettyPrint added in v1.30.1

func PrettyPrint(w io.Writer, exclude ...string)

func Run

func Run(ctx context.Context, names CustomName, format string, fsys afero.Fs) error

Types

type CustomName added in v1.13.0

type CustomName struct {
	ApiURL                   string `env:"api.url,default=API_URL"`
	GraphqlURL               string `env:"api.graphql_url,default=GRAPHQL_URL"`
	StorageS3URL             string `env:"api.storage_s3_url,default=STORAGE_S3_URL"`
	DbURL                    string `env:"db.url,default=DB_URL"`
	StudioURL                string `env:"studio.url,default=STUDIO_URL"`
	InbucketURL              string `env:"inbucket.url,default=INBUCKET_URL"`
	JWTSecret                string `env:"auth.jwt_secret,default=JWT_SECRET"`
	AnonKey                  string `env:"auth.anon_key,default=ANON_KEY"`
	ServiceRoleKey           string `env:"auth.service_role_key,default=SERVICE_ROLE_KEY"`
	StorageS3AccessKeyId     string `env:"storage.s3_access_key_id,default=S3_PROTOCOL_ACCESS_KEY_ID"`
	StorageS3SecretAccessKey string `env:"storage.s3_secret_access_key,default=S3_PROTOCOL_ACCESS_KEY_SECRET"`
	StorageS3Region          string `env:"storage.s3_region,default=S3_PROTOCOL_REGION"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL