module

package
v0.0.0-...-150e33e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

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)

func Upload

func Upload(hostname string, config *config.ModuleConfig) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL