Documentation ¶
Index ¶
- Constants
- func ApplyResource(opts ApplyResourceOptions)
- func CreateResource(opts CreateResourceOptions)
- func DeleteResource(opts DeleteResourceOptions)
- func GetResource(opts GetResourceOptions)
- func ManageHostPlugin(opts HostPluginOptions)
- func ToJSON(obj interface{}, pretty bool) ([]byte, error)
- func ToYAML(obj interface{}) ([]byte, error)
- type AppClient
- func (c AppClient) Apply(obj core.ApiObject) (core.ApiObject, error)
- func (c AppClient) Create(obj core.ApiObject) (core.ApiObject, error)
- func (c AppClient) Delete(namespace string, name string) (core.ApiObject, error)
- func (c AppClient) GetPrint(namespace string, name string, format string) error
- func (c AppClient) Update(obj core.ApiObject) (core.ApiObject, error)
- type AppInstanceClient
- func (c AppInstanceClient) Apply(obj core.ApiObject) (core.ApiObject, error)
- func (c AppInstanceClient) Create(obj core.ApiObject) (core.ApiObject, error)
- func (c AppInstanceClient) Delete(namespace string, name string) (core.ApiObject, error)
- func (c AppInstanceClient) GetPrint(namespace string, name string, format string) error
- func (c AppInstanceClient) Update(obj core.ApiObject) (core.ApiObject, error)
- type ApplyResourceOptions
- type ConfigMapClient
- func (c ConfigMapClient) Apply(obj core.ApiObject) (core.ApiObject, error)
- func (c ConfigMapClient) Create(obj core.ApiObject) (core.ApiObject, error)
- func (c ConfigMapClient) Delete(namespace string, name string) (core.ApiObject, error)
- func (c ConfigMapClient) GetPrint(namespace string, name string, format string) error
- func (c ConfigMapClient) Update(obj core.ApiObject) (core.ApiObject, error)
- type CreateResourceOptions
- type DeleteResourceOptions
- type GetResourceOptions
- type HostClient
- func (c HostClient) Apply(obj core.ApiObject) (core.ApiObject, error)
- func (c HostClient) Create(obj core.ApiObject) (core.ApiObject, error)
- func (c HostClient) Delete(namespace string, name string) (core.ApiObject, error)
- func (c HostClient) GetPrint(namespace string, name string, format string) error
- func (c HostClient) Update(obj core.ApiObject) (core.ApiObject, error)
- type HostPluginClient
- type HostPluginOptions
- type ResourceManager
Constants ¶
View Source
const ( OutputFormatJSON = "json" OutputFormatJSONPretty = "json-pretty" OutputFormatYAML = "yaml" OutputFormatTable = "table" )
View Source
const ( HostPluginActionInstall = "install" HostPluginActionUninstall = "uninstall" )
Variables ¶
This section is empty.
Functions ¶
func ManageHostPlugin ¶
func ManageHostPlugin(opts HostPluginOptions)
Types ¶
type AppInstanceClient ¶
type ApplyResourceOptions ¶
ApplyResourceOptions 资源应用配置项
type ConfigMapClient ¶
type CreateResourceOptions ¶
CreateResourceOptions 创建资源配置项
type DeleteResourceOptions ¶
type DeleteResourceOptions struct { Endpoint string Namespace string Resource string ResourceName string File string }
DeleteResourceOptions 资源删除配置项
type GetResourceOptions ¶
type GetResourceOptions struct { Endpoint string Resource string ResourceName string Namespace string Format string }
GetResourceOptions 获取资源配置项
type HostClient ¶
type HostPluginClient ¶
type HostPluginOptions ¶
type HostPluginOptions struct { Endpoint string Action string Host string PluginName string PluginVersion string Force bool }
HostPluginOptions 主机插件操作配置项
type ResourceManager ¶
type ResourceManager interface { GetPrint(namespace string, name string, format string) error Apply(obj core.ApiObject) (core.ApiObject, error) Create(obj core.ApiObject) (core.ApiObject, error) Update(obj core.ApiObject) (core.ApiObject, error) Delete(namespace string, name string) (core.ApiObject, error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.