func (p *Property) ToInt() int {
	if p.Value != nil {
		if v, ok := p.Value.(int); ok {
			return v
		}
	}
	return 0
}
ToInt parse properties value to int type
package lcm
const (
	ProperConn = "Connection"
	ProperPort = "Port"
	ProperUser = "Username"
	ProperPass = "Password"
	ProperNodes = "AvailableNodes"
)
const (
	CoreURLSecretForCache     string = "coreURLSecret"
	RegisterSecretForCache    string = "registrySecret"
	ClairSecretForCache       string = "clairSecret"
	ChartMuseumSecretForCache string = "chartMuseumSecret"
	JobServiceSecretForCache  string = "jobServiceSecret"
)
const (
	CoreSecretForDatabase         string = "coreSecret"
	ClairSecretForDatabase        string = "clairSecret"
	NotaryServerSecretForDatabase string = "notaryServerSecret"
	NotarySignerSecretForDatabase string = "notarySignerSecret"
)
const (
	InClusterSecretForStorage string = "inClusterSecret"
	AzureSecretForStorage     string = "azureSecret"
	GcsSecretForStorage       string = "gcsSecret"
	SwiftSecretForStorage     string = "swiftSecret"
	S3SecretForStorage        string = "s3Secret"
	OssSecretForStorage       string = "ossSecret"
	ChartMuseumSecretForStorage string = "chartMuseumSecret"
)
type Property struct {
	Name string
	Value interface{}
}
type Properties []*Property
func (ps *Properties) Add(Name string, Value interface{}) {
	p := &Property{
		Name:  Name,
		Value: Value,
	}
	*ps = append(*ps, p)
}
func (ps *Properties) Update(Name string, Value interface{}) {
	for _, p := range *ps {
		if p.Name == Name {
			p.Value = Value
			return
		}
	}
}
func (ps *Properties) Get(Name string) *Property {
	for _, p := range *ps {
		if p.Name == Name {
			return p
		}
	}
	return nil
}