Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseJobHostBindTemplate ¶
func ParseJobHostBindTemplate(hostPath string, clusterInfo apistructs.ClusterInfoData) (string, error)
ParseJobHostBindTemplate Analyze the hostPath template and replace it with the value of cluster info
Types ¶
type ClusterInfo ¶
type ClusterInfo interface { Info(string) (apistructs.ClusterInfoData, error) List([]string) (apistructs.ClusterInfoDataList, error) }
func NewClusterInfoImpl ¶
func NewClusterInfoImpl(js jsonstore.JsonStore) ClusterInfo
type ClusterInfoImpl ¶
type ClusterInfoImpl struct {
// contains filtered or unexported fields
}
func (*ClusterInfoImpl) Info ¶
func (c *ClusterInfoImpl) Info(name string) (apistructs.ClusterInfoData, error)
func (*ClusterInfoImpl) List ¶
func (c *ClusterInfoImpl) List(names []string) (apistructs.ClusterInfoDataList, error)
Click to show internal directories.
Click to hide internal directories.