Documentation ¶
Index ¶
- Constants
- func AddImagesCommonConfigFlags(cmd *cobra.Command, cfg *Configuration)
- func CheckErr(err error, handleErr func(string, int))
- func GetKubeEdgeImages(cfg *Configuration) []string
- func NewCmdVersion() *cobra.Command
- func NewKubeEdgeReset() *cobra.Command
- func NewKubeedgeCommand() *cobra.Command
- func NewUpgradeCommand() *cobra.Command
- func RunVersion(cmd *cobra.Command) error
- func TearDownKubeEdge(isEdgeNode bool, kubeConfig string) error
- type Configuration
Constants ¶
const (
// DefaultErrorExitCode defines exit the code for failed action generally
DefaultErrorExitCode = 1
)
Variables ¶
This section is empty.
Functions ¶
func AddImagesCommonConfigFlags ¶ added in v1.11.0
func AddImagesCommonConfigFlags(cmd *cobra.Command, cfg *Configuration)
AddImagesCommonConfigFlags adds the flags that configure keadm
func CheckErr ¶
CheckErr formats a given error as a string and calls the passed handleErr func with that string and an exit code.
func GetKubeEdgeImages ¶ added in v1.11.0
func GetKubeEdgeImages(cfg *Configuration) []string
GetKubeEdgeImages returns a list of container images that related part expects to use
func NewCmdVersion ¶
func NewKubeEdgeReset ¶
func NewKubeedgeCommand ¶
NewKubeedgeCommand returns cobra.Command to run keadm commands
func NewUpgradeCommand ¶ added in v1.16.0
NewUpgradeCommand creates a upgrade command instance and returns it.
func RunVersion ¶
RunVersion provides the version information of keadm in format depending on arguments specified in cobra.Command.
func TearDownKubeEdge ¶
TearDownKubeEdge will bring down either cloud or edge components, depending upon in which type of node it is executed
Types ¶
type Configuration ¶ added in v1.11.0
type Configuration struct { // eg. v1.9.0 KubeEdgeVersion string // eg. kubeedge ImageRepository string // eg. cloud/edge Part string RemoteRuntimeEndpoint string }
Configuration represent keadm config options
func (*Configuration) GetImageRepository ¶ added in v1.11.0
func (cfg *Configuration) GetImageRepository() string