Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModuleDraftCheck ¶
func ModuleDraftCheck(hostname string, config *config.ModuleConfig, data ModuleModel)
func PublishModule ¶
func PublishModule(module *config.ModuleConfig)
func RemoveDraft ¶
func RemoveDraft(module *config.ModuleConfig)
Types ¶
type ModuleModel ¶
type ModuleModel struct { ID uuid.UUID `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Name string `json:"name"` Provider string `json:"provider"` Namespace string `json:"namespace"` Version string `json:"version"` DownloadCount int `json:"download_count"` PublishedAt time.Time `json:"published_at"` Hash string `json:"sha_checksum"` Readme string `json:"readme"` }
func Read ¶
func Read(hostname string, config *config.ModuleConfig) (data ModuleModel, status int, response_err error)
Returns a ModuleModel struct and the status code of the request
Click to show internal directories.
Click to hide internal directories.