Documentation
¶
Index ¶
- func CreateNewAddonDraftVersion(ctx context.Context, c *cloudquery_api.ClientWithResponses, ...) error
- func CreateNewPluginDraftVersion(ctx context.Context, c *cloudquery_api.ClientWithResponses, ...) error
- func DownloadAddonFromResponse(res *http.Response, expectedChecksum, targetDir string) (retErr error)
- func GetAddonMetadata(ctx context.Context, c *cloudquery_api.ClientWithResponses, ...) (location, checksum string, retErr error)
- func GetSpecJsonScheme(distDir string) (*string, error)
- func PublishNativeBinaries(ctx context.Context, c *cloudquery_api.ClientWithResponses, distDir string, ...) error
- func PublishToDockerRegistry(ctx context.Context, token, distDir string, pkgJSON PackageJSONV1, popts Opts) error
- func UploadAddon(ctx context.Context, c *cloudquery_api.ClientWithResponses, ...) error
- func UploadPluginBinary(ctx context.Context, c *cloudquery_api.ClientWithResponses, ...) error
- func UploadPluginDocs(ctx context.Context, c *cloudquery_api.ClientWithResponses, ...) error
- func UploadPluginUIAssets(ctx context.Context, c *cloudquery_api.ClientWithResponses, ...) error
- func UploadTableSchemas(ctx context.Context, c *cloudquery_api.ClientWithResponses, ...) error
- type LoadResponse
- type ManifestJSONV1
- type Opts
- type PackageJSONV1
- type SchemaVersion
- type TargetBuild
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewAddonDraftVersion ¶
func CreateNewAddonDraftVersion(ctx context.Context, c *cloudquery_api.ClientWithResponses, manifest ManifestJSONV1, version, manifestDir, zipPath string) error
func CreateNewPluginDraftVersion ¶
func CreateNewPluginDraftVersion(ctx context.Context, c *cloudquery_api.ClientWithResponses, teamName, pluginName string, pkgJSON PackageJSONV1, specJsonSchema *string) error
func GetAddonMetadata ¶
func GetAddonMetadata(ctx context.Context, c *cloudquery_api.ClientWithResponses, currentTeam, addonTeam, addonType, addonName, addonVersion string) (location, checksum string, retErr error)
func GetSpecJsonScheme ¶
func PublishNativeBinaries ¶
func PublishNativeBinaries(ctx context.Context, c *cloudquery_api.ClientWithResponses, distDir string, pkgJSON PackageJSONV1) error
func PublishToDockerRegistry ¶
func UploadAddon ¶
func UploadAddon(ctx context.Context, c *cloudquery_api.ClientWithResponses, manifest ManifestJSONV1, version, localPath string) error
func UploadPluginBinary ¶
func UploadPluginBinary(ctx context.Context, c *cloudquery_api.ClientWithResponses, goos, goarch, localPath string, pkgJSON PackageJSONV1) error
func UploadPluginDocs ¶
func UploadPluginDocs(ctx context.Context, c *cloudquery_api.ClientWithResponses, teamName, pluginKind, pluginName, version, docsDir string, replace bool) error
func UploadPluginUIAssets ¶
func UploadPluginUIAssets(ctx context.Context, c *cloudquery_api.ClientWithResponses, teamName, pluginKind, pluginName, version, uiDir string) error
func UploadTableSchemas ¶
func UploadTableSchemas(ctx context.Context, c *cloudquery_api.ClientWithResponses, teamName, pluginName, tablesJSONPath string, pkgJSON PackageJSONV1) error
Types ¶
type LoadResponse ¶
type LoadResponse struct {
Stream string `json:"stream"`
}
type ManifestJSONV1 ¶
type ManifestJSONV1 struct { Type string `json:"type"` // always "addon" TeamName string `json:"team_name"` AddonName string `json:"addon_name"` AddonType string `json:"addon_type"` AddonFormat string `json:"addon_format"` // unused Message string `json:"message"` PathToZip string `json:"path"` PathToDoc string `json:"doc"` PluginDeps []string `json:"plugin_deps"` AddonDeps []string `json:"addon_deps"` }
func ReadManifestJSON ¶
func ReadManifestJSON(manifestPath string) (ManifestJSONV1, error)
type PackageJSONV1 ¶
type PackageJSONV1 struct { Team string `json:"team"` Name string `json:"name"` Message string `json:"message"` Version string `json:"version"` Kind cloudquery_api.PluginKind `json:"kind"` Protocols []int `json:"protocols"` SupportedTargets []TargetBuild `json:"supported_targets"` PackageType string `json:"package_type"` }
func ReadPackageJSON ¶
func ReadPackageJSON(distDir string) (PackageJSONV1, error)
type SchemaVersion ¶
type SchemaVersion struct {
SchemaVersion int `json:"schema_version"`
}
Click to show internal directories.
Click to hide internal directories.