Documentation
¶
Index ¶
- Constants
- func NewPortForwardedClient(ctx context.Context, kubectlCli *kubectl.Cli, proxySelector, namespace string) (*admincli.Client, func(), error)
- func RandStringRunes(n int) string
- func RootCmd(op *options.Options) *cobra.Command
- type ErrorType
- type GatewayAPIOutput
- func (o *GatewayAPIOutput) AddError(errType ErrorType, msg string, args ...interface{})
- func (o *GatewayAPIOutput) AddErrorFromWrapper(errType ErrorType, wrapper domain.Wrapper, msg string, args ...interface{})
- func (g *GatewayAPIOutput) AddObjectToGatewayAPIOutput(obj runtime.Object, fileName string, resourceYaml string)
- func (g *GatewayAPIOutput) Convert() error
- func (g *GatewayAPIOutput) Load(files []string, isSnapshotFile bool) error
- func (g *GatewayAPIOutput) PostProcess(opts *Options) error
- func (g *GatewayAPIOutput) PreProcess(splitMatchers bool) error
- func (g *GatewayAPIOutput) Write(opts *Options) error
- type GlooError
- type Options
- type SnapshotResponseData
- type YamlMarshaller
Constants ¶
View Source
const ( RandomSuffix = 4 RandomSeed = 1 )
View Source
const ( ERROR_TYPE_UPDATE_OBJECT ErrorType = "UPDATE_OBJECT" ERROR_TYPE_NOT_SUPPORTED = "NOT_SUPPORTED" ERROR_TYPE_IGNORED = "IGNORED" ERROR_TYPE_UNKNOWN_REFERENCE = "UNKNOWN_REFERENCE" ERROR_TYPE_NO_REFERENCES = "NO_REFERENCES" ERROR_TYPE_CEL_VALIDATION_CORRECTION = "CEL_VALIDATION_CORRECTION" )
Variables ¶
This section is empty.
Functions ¶
func NewPortForwardedClient ¶
func RandStringRunes ¶
Types ¶
type GatewayAPIOutput ¶
type GatewayAPIOutput struct {
// contains filtered or unexported fields
}
func NewGatewayAPIOutput ¶
func NewGatewayAPIOutput() *GatewayAPIOutput
func (*GatewayAPIOutput) AddError ¶
func (o *GatewayAPIOutput) AddError(errType ErrorType, msg string, args ...interface{})
func (*GatewayAPIOutput) AddErrorFromWrapper ¶
func (o *GatewayAPIOutput) AddErrorFromWrapper(errType ErrorType, wrapper domain.Wrapper, msg string, args ...interface{})
func (*GatewayAPIOutput) AddObjectToGatewayAPIOutput ¶
func (g *GatewayAPIOutput) AddObjectToGatewayAPIOutput(obj runtime.Object, fileName string, resourceYaml string)
func (*GatewayAPIOutput) Convert ¶
func (g *GatewayAPIOutput) Convert() error
func (*GatewayAPIOutput) Load ¶
func (g *GatewayAPIOutput) Load(files []string, isSnapshotFile bool) error
func (*GatewayAPIOutput) PostProcess ¶
func (g *GatewayAPIOutput) PostProcess(opts *Options) error
func (*GatewayAPIOutput) PreProcess ¶
func (g *GatewayAPIOutput) PreProcess(splitMatchers bool) error
func (*GatewayAPIOutput) Write ¶
func (g *GatewayAPIOutput) Write(opts *Options) error
type Options ¶
type Options struct {
*options.Options
InputFile string
InputDir string
GlooSnapshotFile string
OutputDir string
Stats bool
CombineRouteOptions bool
RetainFolderStructure bool
IncludeUnknownResources bool
DeleteOutputDir bool
CreateNamespaces bool
ControlPlaneName string
ControlPlaneNamespace string
}
type SnapshotResponseData ¶
type SnapshotResponseData struct {
Data []map[string]interface{} `json:"data"`
}
type YamlMarshaller ¶
type YamlMarshaller struct{}
func (YamlMarshaller) ToYaml ¶
func (YamlMarshaller) ToYaml(resource interface{}) ([]byte, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.