Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateIndexFromFile(term string) error
- func UpgradeAssets(force bool, skipdownload bool) error
- type AssetDefinition
- type AssetDefinitionFilter
- type AssetDefinitionFilterTerms
- type AssetRemoteDescription
- type CustomAwsImage
- type SearchRequest
- type SearchResult
- type UpgradeStateType
Constants ¶
View Source
const INDEX_TOKEN_SIZE = 3
View Source
const SUB_INDEX_TOKEN_SIZE = 2
View Source
const USED_BY_SPA = "SPA"
Variables ¶
View Source
var AssetsDefinition map[string]*AssetDefinition = make(map[string]*AssetDefinition)
View Source
var PROXYHTTP string
View Source
var State *assetsState
var CurrentUpgradeState UpgradeStateType var LastUpgradeState UpgradeStateType
Functions ¶
func GenerateIndexFromFile ¶
func UpgradeAssets ¶
Types ¶
type AssetDefinition ¶
type AssetDefinitionFilter ¶
type AssetDefinitionFilterTerms ¶
func (AssetDefinitionFilterTerms) Get ¶
func (a AssetDefinitionFilterTerms) Get(key string) string
type AssetRemoteDescription ¶
type CustomAwsImage ¶
type CustomAwsImage struct { Architecture *string `json:"Architecture"` CreationDate *string `json:"CreationDate"` Description *string `json:"Description"` EnaSupport *bool `json:"EnaSupport"` Hypervisor *string `json:"Hypervisor"` ImageType *string `json:"ImageType"` Name *string `json:"Name"` OwnerId *string `json:"OwnerId"` PlatformDetails *string `json:"PlatformDetails"` VirtualizationType *string `json:"VirtualizationType"` ImageIds map[string]string `json:"ImageIds"` ImageId *string `json:"ImageId"` }
type SearchRequest ¶
type SearchRequest struct { SearchTerm string FilterTerms url.Values Limit int Offset int Sort string }
func (*SearchRequest) Validate ¶
func (s *SearchRequest) Validate() (bool, error)
type SearchResult ¶
type SearchResult struct { Count int `json:"count"` Results []interface{} `json:"results"` }
func Search ¶
func Search(sr *SearchRequest, assetdef *AssetDefinition) (*SearchResult, error)
type UpgradeStateType ¶
type UpgradeStateType int
const ( UpgradeStateNone UpgradeStateType = iota UpgradeStateInProgress UpgradeStateInProgressWithErr UpgradeStateEndWithErr UpgradeStateEndOK )
Click to show internal directories.
Click to hide internal directories.