Documentation ¶
Index ¶
Constants ¶
View Source
const ( APIVERSION_V1 = iota APIVERSION_V2 APIVERSION_ACI )
Variables ¶
View Source
var ( //Global AppName string Usage string Version string Author string Email string RunMode string ListenMode string HttpsCertFile string HttpsKeyFile string LogPath string DBURI string DBPasswd string DBDB int64 //Dockyard BackendDriver string ImagePath string Domains string RegistryVersion string DistributionVersion string Standalone string OssSwitch string )
View Source
var ( Endpoint string Bucket string AccessKeyID string AccessKeysecret string //upyun unique User string Passwd string //qcloud unique AccessID string //googlecloud unique Projectid string Scope string PrivateKeyFile string Clientemail string )
object storage driver config parameters TBD: It should be considered to refine the universal config parameters
View Source
var ( //Path of the database. Default: '/db' ClairDBPath string //Remove all the data in DB after stop the clair service. Default: false ClairKeepDB bool //Log level of the clair lib. Default: 'info' //All values: ['critical, error, warning, notice, info, debug, trace'] ClairLogLevel string //Update CVE date in every '%dh%dm%ds'. Default: '1h0m0s' ClairUpdateDuration string //Return CVEs with minimal priority to Dockyard. Default: 'Low' //All values: ['Unknown, Negligible, Low, Medium, High, Critical, Defcon1'] ClairVulnPriority string )
Clair service config parameters
View Source
var ( APIPort int APIHttpsPort int PartSizeMB int )
OSS backend driver parameters
Functions ¶
func GetConfFromJSON ¶
Types ¶
type AuthorDesc ¶
type AuthorDesc map[string]interface{}
type AuthorsCtx ¶
type AuthorsCtx map[string]AuthorDesc
func (AuthorsCtx) Name ¶
func (auth AuthorsCtx) Name() (name string)
type Desc ¶
type Desc struct { Notifications NotificationsCtx `json:"notifications,omitempty"` Authors AuthorsCtx `json:"auth,omitempty"` }
var JSONConfCtx Desc
type EndpointDesc ¶
type NotificationsCtx ¶
type NotificationsCtx struct { Name string `json:"name,omitempty"` Endpoints []EndpointDesc `json:"endpoints,omitempty"` }
Click to show internal directories.
Click to hide internal directories.