Versions in this module Expand all Collapse all v0 v0.0.2 Nov 3, 2023 v0.0.1 Nov 3, 2023 Changes in this version + const ImplementationTypeKongGateway + var ErrorConsumerGroupUpgrade = errors.New(...) + var Kong140Version = semver.MustParse("1.4.0") + var Kong300Version = semver.MustParse("3.0.0") + var Kong340Version = semver.MustParse("3.4.0") + var UpgradeMessage = ... + func AddExtToFilename(filename, ext string) string + func CallGetAll(obj interface{}) (reflect.Value, error) + func CleanAddress(address string) string + func CleanKongVersion(version string) (string, error) + func ConfigFilesInDir(dir string) ([]string, error) + func Confirm(message string) (bool, error) + func ConfirmFileOverwrite(filename string, ext string, assumeYes bool) (bool, error) + func Empty(s *string) bool + func FilenameToName(filename string) string + func GetConsumerGroupReference(c kong.ConsumerGroup) *kong.ConsumerGroup + func GetConsumerReference(c kong.Consumer) *kong.Consumer + func GetKongClient(opt KongClientConfig) (*kong.Client, error) + func GetKonnectClient(httpClient *http.Client, config KonnectConfig) (*konnect.Client, error) + func GetRouteReference(r kong.Route) *kong.Route + func GetServiceReference(s kong.Service) *kong.Service + func HTTPClient() *http.Client + func HasPathsWithRegex300AndAbove(route kong.Route) bool + func IsPathRegexLike(path string) bool + func MergeTags(obj interface{}, tags []string) error + func MustMergeTags(obj interface{}, tags []string) + func MustRemoveTags(obj interface{}, tags []string) + func NameToFilename(name string) string + func ParseKongVersion(version string) (semver.Version, error) + func PrintRouteRegexWarning(unsupportedRoutes []string) + func RemoveDuplicates(slice *[]string) + func RemoveTags(obj interface{}, tags []string) error + func SendAnalytics(cmd, deckVersion, kongVersion, mode string) error + func UUID() string + func WorkspaceExists(ctx context.Context, client *kong.Client) (bool, error) + func ZeroOutField(obj interface{}, field string) + func ZeroOutID(obj interface{}, altName *string, withID bool) + func ZeroOutTimestamps(obj interface{}) + type AtomicInt32Counter struct + func (a *AtomicInt32Counter) Count() int32 + func (a *AtomicInt32Counter) Increment(delta int32) + type Defaulter struct + func GetDefaulter(ctx context.Context, opts DefaulterOpts) (*Defaulter, error) + func NewDefaulter() *Defaulter + func (d *Defaulter) MustSet(arg interface{}) + func (d *Defaulter) Register(def interface{}) error + func (d *Defaulter) Set(arg interface{}) error + type DefaulterOpts struct + Client *kong.Client + DisableDynamicDefaults bool + IsKonnect bool + KongDefaults interface{} + type ErrArray struct + Errors []error + func (e ErrArray) Error() string + func (e ErrArray) ErrorList() []string + type KongClientConfig struct + Address string + CookieJarPath string + Debug bool + HTTPClient *http.Client + Headers []string + Retryable bool + SkipWorkspaceCrud bool + TLSCACert string + TLSClientCert string + TLSClientKey string + TLSServerName string + TLSSkipVerify bool + Timeout int + Workspace string + func (kc *KongClientConfig) ForWorkspace(name string) KongClientConfig + type KongRawState struct + ACLGroups []*kong.ACLGroup + BasicAuths []*kong.BasicAuth + CACertificates []*kong.CACertificate + Certificates []*kong.Certificate + ConsumerGroups []*kong.ConsumerGroupObject + Consumers []*kong.Consumer + CustomEntities []*custom.Entity + HMACAuths []*kong.HMACAuth + JWTAuths []*kong.JWTAuth + KeyAuths []*kong.KeyAuth + MTLSAuths []*kong.MTLSAuth + Oauth2Creds []*kong.Oauth2Credential + Plugins []*kong.Plugin + RBACEndpointPermissions []*kong.RBACEndpointPermission + RBACRoles []*kong.RBACRole + Routes []*kong.Route + SNIs []*kong.SNI + Services []*kong.Service + Targets []*kong.Target + Upstreams []*kong.Upstream + Vaults []*kong.Vault + type KonnectConfig struct + Address string + ControlPlaneName string + Debug bool + Email string + Headers []string + Password string + Token string + type KonnectRawState struct + Documents []*konnect.Document + ServicePackages []*konnect.ServicePackage