Documentation ¶
Index ¶
- func BuildEmptyApps() map[string]interface{}
- func EqualConfig(config1, config2 *specV1.Configuration) bool
- type Activation
- type AltNames
- type AppItem
- type ApplicationList
- type ApplicationView
- type Batch
- type Bucket
- type BucketsView
- type Callback
- type CertStorage
- type Certificate
- type CertificateDataItem
- type CertificateList
- type ConfigDataItem
- type ConfigFunctionItem
- type ConfigObjectItem
- type ConfigurationList
- type ConfigurationView
- type DesireRequest
- type DesireResponse
- type Filter
- type Fingerprint
- type Function
- type FunctionCode
- type FunctionSource
- type FunctionSourceView
- type FunctionView
- type Index
- type ListObjectsResult
- type ListOptions
- type ListView
- type MisData
- type Namespace
- type NodeList
- type NodeNames
- type NodeViewList
- type Object
- type ObjectMeta
- type ObjectParams
- type ObjectStorageSource
- type ObjectStorageSourceView
- type ObjectSummaryType
- type ObjectURL
- type ObjectView
- type ObjectsView
- type PEMCredential
- type Package
- type PackageParam
- type PrefixType
- type Property
- type Record
- type Registry
- type RegistryList
- type RegistryView
- type Resource
- type ResponseInfo
- type SecretList
- type SecretView
- type SecretViewList
- type ServiceFunction
- type Shadow
- type ShadowList
- type SysConfig
- type SysConfigView
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildEmptyApps ¶
func BuildEmptyApps() map[string]interface{}
func EqualConfig ¶
func EqualConfig(config1, config2 *specV1.Configuration) bool
Types ¶
type Activation ¶
type AltNames ¶
type AltNames struct { DNSNames []string `json:"dnsNames,omitempty"` IPs []net.IP `json:"ips,omitempty"` Emails []string `json:"emails,omitempty"` URIs []*url.URL `json:"uris,omitempty"` }
AltNames contains the domain names and IP addresses that will be added to the API Server's x509 certificate SubAltNames field. The values will be passed directly to the x509.Certificate object.
type AppItem ¶
type AppItem struct { Name string `json:"name,omitempty" validate:"omitempty,resourceName"` Type string `json:"type,omitempty" default:"container"` Labels map[string]string `json:"labels,omitempty"` Selector string `json:"selector"` Version string `json:"version,omitempty"` Namespace string `json:"namespace,omitempty"` CreationTimestamp time.Time `json:"createTime,omitempty"` Description string `json:"description,omitempty"` System bool `json:"system,omitempty"` }
type ApplicationList ¶
type ApplicationList struct { Total int `json:"total"` ListOptions *ListOptions `json:"listOptions"` Items []AppItem `json:"items"` }
ApplicationList app List
type ApplicationView ¶
type ApplicationView struct { specV1.Application `json:",inline"` Registries []RegistryView `json:"registries,omitempty"` }
type Batch ¶
type Batch struct { Name string `json:"name,omitempty" validate:"omitempty,resourceName"` Namespace string `json:"namespace,omitempty"` Description string `json:"description,omitempty"` QuotaNum int `json:"quotaNum,omitempty"` EnableWhitelist int `json:"enableWhitelist,omitempty"` SecurityType common.Security `json:"securityType,omitempty"` SecurityKey string `json:"securityKey,omitempty"` CallbackName string `json:"callbackName,omitempty"` Labels map[string]string `json:"labels,omitempty" validate:"omitempty,validLabels"` Fingerprint Fingerprint `json:"fingerprint,omitempty"` CreateTime time.Time `json:"createTime,omitempty"` UpdateTime time.Time `json:"updateTime,omitempty"` }
type BucketsView ¶
type BucketsView struct {
Buckets []Bucket `json:"buckets"`
}
type Callback ¶
type Callback struct { Name string `json:"name,omitempty" validate:"omitempty,resourceName"` Namespace string `json:"namespace,omitempty"` Method string `json:"method,omitempty" binding:"required"` Url string `json:"url,omitempty" binding:"required"` Params map[string]string `json:"params,omitempty"` Header map[string]string `json:"header,omitempty"` Body map[string]string `json:"body,omitempty"` Description string `json:"description,omitempty"` CreateTime time.Time `json:"createTime,omitempty"` UpdateTime time.Time `json:"updateTime,omitempty"` }
type CertStorage ¶
CertStorage contains certName and keyName which can be used to storage certificate and private key pem data to secret.
type Certificate ¶
type Certificate struct { Name string `json:"name,omitempty" validate:"omitempty,resourceName,nonBaetyl"` Namespace string `json:"namespace,omitempty"` SignatureAlgorithm string `json:"signatureAlgorithm,omitempty"` EffectiveTime string `json:"effectiveTime,omitempty"` ExpiredTime string `json:"expiredTime,omitempty"` SerialNumber string `json:"serialNumber,omitempty"` Issuer string `json:"issuer,omitempty"` FingerPrint string `json:"fingerPrint,omitempty"` Data CertificateDataItem `json:"data,omitempty"` CreationTimestamp time.Time `json:"createTime,omitempty"` UpdateTimestamp time.Time `json:"updateTime,omitempty"` Description string `json:"description"` Version string `json:"version,omitempty"` }
Certificate Certificate
func FromSecretToCertificate ¶
func FromSecretToCertificate(s *specV1.Secret) *Certificate
func (*Certificate) Equal ¶
func (r *Certificate) Equal(target *Certificate) bool
func (*Certificate) ParseCertInfo ¶
func (r *Certificate) ParseCertInfo() error
func (*Certificate) ToSecret ¶
func (r *Certificate) ToSecret() *specV1.Secret
type CertificateDataItem ¶
type CertificateList ¶
type CertificateList struct { Total int `json:"total"` ListOptions *ListOptions `json:"listOptions"` Items []Certificate `json:"items"` }
CertificateList Certificate List
func FromSecretListToCertificateList ¶
func FromSecretListToCertificateList(s *SecretList) *CertificateList
type ConfigDataItem ¶
type ConfigFunctionItem ¶
type ConfigFunctionItem struct { ConfigObjectItem `json:",inline"` Function string `json:"function,omitempty"` Version string `json:"version,omitempty"` Runtime string `json:"runtime,omitempty"` Handler string `json:"handler,omitempty"` }
type ConfigObjectItem ¶
type ConfigObjectItem struct { Source string `json:"source,omitempty"` Endpoint string `json:"endpoint,omitempty"` Bucket string `json:"bucket,omitempty"` Object string `json:"object,omitempty"` Unpack string `json:"unpack,omitempty"` MD5 string `json:"md5,omitempty"` Ak string `json:"ak,omitempty"` Sk string `json:"sk,omitempty"` }
type ConfigurationList ¶
type ConfigurationList struct { Total int `json:"total"` ListOptions *ListOptions `json:"listOptions"` Items []specV1.Configuration `json:"items"` }
ConfigurationList Configuration List
type ConfigurationView ¶
type ConfigurationView struct { Name string `json:"name,omitempty" validate:"resourceName,nonBaetyl"` Namespace string `json:"namespace,omitempty"` Labels map[string]string `json:"labels,omitempty"` Data []ConfigDataItem `json:"data,omitempty" default:"[]" validate:"dive"` CreationTimestamp time.Time `json:"createTime,omitempty"` UpdateTimestamp time.Time `json:"updateTime,omitempty"` Description string `json:"description,omitempty"` Version string `json:"version,omitempty"` System bool `json:"system,omitempty"` }
type DesireRequest ¶
type DesireRequest struct {
Resources []*Resource `yaml:"resources,omitempty" json:"resources,omitempty"`
}
type DesireResponse ¶
type DesireResponse struct {
Resources []*Resource `yaml:"resources,omitempty" json:"resources,omitempty"`
}
type Filter ¶
type Fingerprint ¶
type Function ¶
type Function struct { Name string `yaml:"name,omitempty" json:"name,omitempty" validate:"omitempty,resourceName,nonBaetyl"` Handler string `yaml:"handler,omitempty" json:"handler,omitempty"` Version string `yaml:"version,omitempty" json:"version,omitempty"` Runtime string `yaml:"runtime,omitempty" json:"runtime,omitempty"` Code FunctionCode `yaml:"code,omitempty" json:"code,omitempty"` }
type FunctionCode ¶
type FunctionSource ¶
type FunctionSource struct {
Name string `json:"name,omitempty"`
}
type FunctionSourceView ¶
type FunctionSourceView struct { Sources []FunctionSource `json:"sources"` Runtimes map[string]string `json:"runtimes"` }
type FunctionView ¶
type FunctionView struct {
Functions []Function `json:"functions"`
}
type ListObjectsResult ¶
type ListObjectsResult struct { Name string Prefix string Delimiter string Marker string NextMarker string MaxKeys int64 IsTruncated bool Contents []ObjectSummaryType CommonPrefixes []PrefixType }
type ListOptions ¶
type MisData ¶
type MisData struct { Count int `json:"count,omitempty"` Rows interface{} `json:"rows,omitempty"` }
type Namespace ¶
type Namespace struct {
Name string `json:"name,omitempty" validate:"namespace"`
}
Namespace Namespace
type NodeList ¶
type NodeList struct { Total int `json:"total"` ListOptions *ListOptions `json:"listOptions"` Items []specV1.Node `json:"items"` }
NodeList node list
type NodeViewList ¶
type NodeViewList struct { Total int `json:"total"` ListOptions *ListOptions `json:"listOptions"` Items []specV1.NodeView `json:"items"` }
NodeViewList node view list
type Object ¶
type Object struct { ObjectMeta Body io.ReadCloser }
type ObjectMeta ¶
type ObjectParams ¶
type ObjectStorageSource ¶
type ObjectStorageSource struct {
Name string `json:"name,omitempty"`
}
type ObjectStorageSourceView ¶
type ObjectStorageSourceView struct {
Sources []ObjectStorageSource `json:"sources"`
}
type ObjectSummaryType ¶
type ObjectView ¶
type ObjectView struct {
Name string `json:"name,omitempty"`
}
type ObjectsView ¶
type ObjectsView struct {
Objects []ObjectView `json:"objects"`
}
type PEMCredential ¶
PEMCredential holds a certificate, private key pem data
type PackageParam ¶
type PackageParam struct {
Platform string `form:"platform"`
}
type PrefixType ¶
type PrefixType struct {
Prefix string
}
type Property ¶
type Property struct { Name string `yaml:"name,omitempty" json:"name,omitempty" db:"name"` Value string `yaml:"value,omitempty" json:"value,omitempty" db:"value"` CreateTime time.Time `yaml:"createTime,omitempty" json:"createTime,omitempty" db:"create_time"` UpdateTime time.Time `yaml:"updateTime,omitempty" json:"updateTime,omitempty" db:"update_time"` }
type Record ¶
type Record struct { Name string `json:"name,omitempty" db:"name"` Namespace string `json:"namespace,omitempty" db:"namespace"` BatchName string `json:"batchName,omitempty" db:"batch_name"` FingerprintValue string `json:"fingerprintValue,omitempty" db:"fingerprint_value" validate:"omitempty,fingerprintValue"` Active int `json:"active,omitempty" db:"active"` NodeName string `json:"nodeName,omitempty" db:"node_name" validate:"omitempty,resourceName"` ActiveIP string `json:"activeIP,omitempty" db:"active_ip"` ActiveTime time.Time `json:"activeTime,omitempty" db:"active_time"` CreateTime time.Time `json:"createTime,omitempty" db:"create_time"` UpdateTime time.Time `json:"updateTime,omitempty" db:"update_time"` }
type Registry ¶
type Registry struct { Name string `json:"name,omitempty" validate:"omitempty,resourceName,nonBaetyl"` Namespace string `json:"namespace,omitempty"` Address string `json:"address"` Username string `json:"username"` Password string `json:"password,omitempty"` CreationTimestamp time.Time `json:"createTime,omitempty"` UpdateTimestamp time.Time `json:"updateTime,omitempty"` Description string `json:"description"` Version string `json:"version,omitempty"` }
Registry Registry
func FromSecretToRegistry ¶
type RegistryList ¶
type RegistryList struct { Total int `json:"total"` ListOptions *ListOptions `json:"listOptions"` Items []Registry `json:"items"` }
RegistryList Registry List
func FromSecretListToRegistryList ¶
func FromSecretListToRegistryList(s *SecretList) *RegistryList
type RegistryView ¶
type ResponseInfo ¶
type ResponseInfo struct { Delta interface{} `yaml:"delta,omitempty" json:"delta,omitempty"` Metadata map[string]interface{} `yaml:"metadata,omitempty" json:"metadata,omitempty" default:"{}"` }
type SecretList ¶
type SecretList struct { Total int `json:"total"` ListOptions *ListOptions `json:"listOptions"` Items []specV1.Secret `json:"items"` }
type SecretView ¶
type SecretView struct { Name string `json:"name,omitempty" validate:"omitempty,resourceName"` Namespace string `json:"namespace,omitempty"` Data map[string]string `json:"data,omitempty" binding:"required"` CreationTimestamp time.Time `json:"createTime,omitempty"` UpdateTimestamp time.Time `json:"updateTime,omitempty"` Description string `json:"description"` Version string `json:"version,omitempty"` }
func FromSecretToView ¶
func FromSecretToView(s *specV1.Secret) *SecretView
func (*SecretView) Equal ¶
func (s *SecretView) Equal(target *SecretView) bool
func (*SecretView) ToSecret ¶
func (s *SecretView) ToSecret() *specV1.Secret
type SecretViewList ¶
type SecretViewList struct { Total int `json:"total"` ListOptions *ListOptions `json:"listOptions"` Items []SecretView `json:"items"` }
func FromSecretListToView ¶
func FromSecretListToView(s *SecretList) *SecretViewList
type ServiceFunction ¶
type ServiceFunction struct {
Functions []specV1.ServiceFunction `json:"functions,omitempty"`
}
type Shadow ¶
type Shadow struct { Namespace string `json:"namespace,omitempty"` Name string `json:"name,omitempty"` Report v1.Report `json:"report,omitempty"` Desire v1.Desire `json:"desire,omitempty"` CreationTimestamp time.Time `json:"createTime,omitempty"` }
func NewShadowFromNode ¶
func (*Shadow) GetDesireString ¶
func (*Shadow) GetReportString ¶
type ShadowList ¶
type ShadowList struct { Total int `json:"total"` ListOptions *ListOptions `json:"listOptions"` Items []Shadow `json:"items"` }
NodeViewList node view list
type SysConfig ¶
type SysConfig struct { Type string `yaml:"type,omitempty" json:"type,omitempty" db:"type"` Key string `yaml:"key,omitempty" json:"key,omitempty" db:"name"` Value string `yaml:"value,omitempty" json:"value,omitempty" db:"value"` CreateTime time.Time `yaml:"createTime,omitempty" json:"createTime,omitempty" db:"create_time"` UpdateTime time.Time `yaml:"updateTime,omitempty" json:"updateTime,omitempty" db:"update_time"` }
type SysConfigView ¶
type SysConfigView struct {
SysConfigs []SysConfig `json:"sysconfigs"`
}
type Task ¶
type Task struct { TraceId string `json:"trace_id,omitempty" db:"trace_id"` Namespace string `json:"namespace,omitempty" db:"namespace"` Node string `json:"node,omitempty" db:"node"` Type string `json:"type,omitempty" db:"type"` State string `json:"state,omitempty" db:"state"` Step string `json:"step,omitempty" db:"step"` OldVersion string `json:"old_version,omitempty" db:"old_version"` NewVersion string `json:"new_version,omitempty" db:"new_version"` CreateTime time.Time `json:"createTime,omitempty" db:"create_time"` UpdateTime time.Time `json:"updateTime,omitempty" db:"update_time"` }
Click to show internal directories.
Click to hide internal directories.