Versions in this module Expand all Collapse all v0 v0.0.1 Apr 8, 2026 Changes in this version + func Execute() + func NewAppContext(ctx context.Context, app *App) context.Context + func NewRootCmd() *cobra.Command + func RefreshSkillsIfVersionChanged() + type AccountAPI interface + GetAuditLog func(ctx context.Context, date string, opts client.AuditLogOptions) (*client.AuditLogResponse, error) + ListApiKeys func(ctx context.Context, page, perPage int) (pagination.PageResponse[*client.ApiKey], error) + type App struct + NewAccountAPI func(cmd *cobra.Command) (AccountAPI, error) + NewBillingAPI func(cmd *cobra.Command) (BillingAPI, error) + NewCountryAPI func(cmd *cobra.Command) (CountryAPI, error) + NewDnsZoneAPI func(cmd *cobra.Command) (DnsZoneAPI, error) + NewEdgeScriptAPI func(cmd *cobra.Command) (EdgeScriptAPI, error) + NewPullZoneAPI func(cmd *cobra.Command) (PullZoneAPI, error) + NewRegionAPI func(cmd *cobra.Command) (RegionAPI, error) + NewShieldAPI func(cmd *cobra.Command) (ShieldAPI, error) + NewStatisticsAPI func(cmd *cobra.Command) (StatisticsAPI, error) + NewStorageAPI func(cmd *cobra.Command, password, hostname string) (StorageAPI, error) + NewStorageZoneAPI func(cmd *cobra.Command) (StorageZoneAPI, error) + NewStreamAPI func(cmd *cobra.Command) (StreamAPI, error) + NewVideoLibraryAPI func(cmd *cobra.Command) (VideoLibraryAPI, error) + func AppFromContext(ctx context.Context) *App + func DefaultApp() *App + type BillingAPI interface + DownloadInvoice func(ctx context.Context, billingRecordId int64) ([]byte, error) + GetBillingDetails func(ctx context.Context) (*client.BillingDetails, error) + GetBillingSummary func(ctx context.Context) ([]*client.BillingSummaryItem, error) + type CountryAPI interface + ListCountries func(ctx context.Context) ([]*client.Country, error) + type DnsZoneAPI interface + AddDnsRecord func(ctx context.Context, zoneId int64, body *client.DnsRecordCreate) (*client.DnsRecord, error) + CreateDnsZone func(ctx context.Context, body *client.DnsZoneCreate) (*client.DnsZone, error) + DeleteDnsRecord func(ctx context.Context, zoneId, recordId int64) error + DeleteDnsZone func(ctx context.Context, id int64) error + DisableDnsSec func(ctx context.Context, zoneId int64) (*client.DnsSecInfo, error) + EnableDnsSec func(ctx context.Context, zoneId int64) (*client.DnsSecInfo, error) + ExportDnsZone func(ctx context.Context, zoneId int64) ([]byte, error) + GetDnsZone func(ctx context.Context, id int64) (*client.DnsZone, error) + ImportDnsZone func(ctx context.Context, zoneId int64, data io.Reader) (*client.DnsZoneImportResult, error) + ListDnsZones func(ctx context.Context, page, perPage int, search string) (pagination.PageResponse[*client.DnsZone], error) + UpdateDnsRecord func(ctx context.Context, zoneId, recordId int64, body *client.DnsRecordUpdate) error + UpdateDnsZone func(ctx context.Context, id int64, body *client.DnsZoneUpdate) (*client.DnsZone, error) + type EdgeScriptAPI interface + AddEdgeScriptSecret func(ctx context.Context, scriptId int64, body *client.EdgeScriptSecretCreate) (*client.EdgeScriptSecret, error) + AddEdgeScriptVariable func(ctx context.Context, scriptId int64, body *client.EdgeScriptVariableCreate) (*client.EdgeScriptVariable, error) + CreateEdgeScript func(ctx context.Context, body *client.EdgeScriptCreate) (*client.EdgeScript, error) + DeleteEdgeScript func(ctx context.Context, id int64, deleteLinkedPullZones bool) error + DeleteEdgeScriptSecret func(ctx context.Context, scriptId, secretId int64) error + DeleteEdgeScriptVariable func(ctx context.Context, scriptId, variableId int64) error + GetActiveEdgeScriptRelease func(ctx context.Context, scriptId int64) (*client.EdgeScriptRelease, error) + GetEdgeScript func(ctx context.Context, id int64) (*client.EdgeScript, error) + GetEdgeScriptCode func(ctx context.Context, id int64) (*client.EdgeScriptCode, error) + GetEdgeScriptStatistics func(ctx context.Context, id int64, dateFrom, dateTo string, ...) (*client.EdgeScriptStatistics, error) + GetEdgeScriptVariable func(ctx context.Context, scriptId, variableId int64) (*client.EdgeScriptVariable, error) + ListEdgeScriptReleases func(ctx context.Context, scriptId int64, page, perPage int) (pagination.PageResponse[*client.EdgeScriptRelease], error) + ListEdgeScriptSecrets func(ctx context.Context, scriptId int64) ([]*client.EdgeScriptSecret, error) + ListEdgeScripts func(ctx context.Context, page, perPage int, search string, scriptTypes []int) (pagination.PageResponse[*client.EdgeScript], error) + PublishEdgeScript func(ctx context.Context, scriptId int64, body *client.EdgeScriptPublish) error + PublishEdgeScriptRelease func(ctx context.Context, scriptId int64, uuid string) error + RotateEdgeScriptDeploymentKey func(ctx context.Context, id int64) error + SetEdgeScriptCode func(ctx context.Context, id int64, code string) error + UpdateEdgeScript func(ctx context.Context, id int64, body *client.EdgeScriptUpdate) (*client.EdgeScript, error) + UpdateEdgeScriptSecret func(ctx context.Context, scriptId, secretId int64, ...) error + UpdateEdgeScriptVariable func(ctx context.Context, scriptId, variableId int64, ...) error + type PullZoneAPI interface + AddOrUpdateEdgeRule func(ctx context.Context, pullZoneId int64, rule *client.EdgeRule) error + AddPullZoneHostname func(ctx context.Context, id int64, hostname string) error + CreatePullZone func(ctx context.Context, body *client.PullZoneCreate) (*client.PullZone, error) + DeleteEdgeRule func(ctx context.Context, pullZoneId int64, edgeRuleId string) error + DeletePullZone func(ctx context.Context, id int64) error + GetPullZone func(ctx context.Context, id int64) (*client.PullZone, error) + ListPullZones func(ctx context.Context, page, perPage int, search string) (pagination.PageResponse[*client.PullZone], error) + PurgePullZoneCache func(ctx context.Context, id int64, cacheTag string) error + RemovePullZoneHostname func(ctx context.Context, id int64, hostname string) error + SetEdgeRuleEnabled func(ctx context.Context, pullZoneId int64, edgeRuleId string, enabled bool) error + UpdatePullZone func(ctx context.Context, id int64, body *client.PullZoneUpdate) (*client.PullZone, error) + type RegionAPI interface + ListRegions func(ctx context.Context) ([]*client.Region, error) + type ShieldAPI interface + CreateCustomAccessList func(ctx context.Context, shieldZoneId int64, body *client.CustomAccessListCreate) (*client.CustomAccessList, error) + CreateCustomWafRule func(ctx context.Context, body *client.CustomWafRuleCreate) (*client.CustomWafRule, error) + CreateRateLimit func(ctx context.Context, body *client.RateLimitRuleCreate) (*client.RateLimitRule, error) + CreateShieldZone func(ctx context.Context, body *client.ShieldZoneCreate) (*client.ShieldZoneResponse, error) + DeleteCustomAccessList func(ctx context.Context, shieldZoneId, id int64) error + DeleteCustomWafRule func(ctx context.Context, id int64) error + DeleteRateLimit func(ctx context.Context, id int64) error + GetBotDetection func(ctx context.Context, shieldZoneId int64) (*client.BotDetectionConfig, error) + GetCustomAccessList func(ctx context.Context, shieldZoneId, id int64) (*client.CustomAccessList, error) + GetCustomWafRule func(ctx context.Context, id int64) (*client.CustomWafRule, error) + GetRateLimit func(ctx context.Context, id int64) (*client.RateLimitRule, error) + GetShieldBotDetectionMetrics func(ctx context.Context, shieldZoneId int64) (*client.ShieldZoneBotDetectionMetrics, error) + GetShieldEventLogs func(ctx context.Context, shieldZoneId int64, date, continuationToken string) (*client.EventLogResponse, error) + GetShieldMetricsDetailed func(ctx context.Context, shieldZoneId int64, startDate, endDate string, ...) (*client.ShieldOverviewMetricsData, error) + GetShieldMetricsOverview func(ctx context.Context, shieldZoneId int64) (*client.ShieldZoneMetrics, error) + GetShieldRateLimitMetric func(ctx context.Context, id int64) (*client.RatelimitMetrics, error) + GetShieldRateLimitMetrics func(ctx context.Context, shieldZoneId int64) ([]*client.ShieldZoneRateLimitMetrics, error) + GetShieldUploadScanningMetrics func(ctx context.Context, shieldZoneId int64) (*client.ShieldZoneUploadScanningMetrics, error) + GetShieldWafRuleMetrics func(ctx context.Context, shieldZoneId int64, ruleId int) (*client.WafRuleMetrics, error) + GetShieldZone func(ctx context.Context, id int64) (*client.ShieldZone, error) + GetShieldZoneByPullZone func(ctx context.Context, pullZoneId int64) (*client.ShieldZone, error) + GetUploadScanning func(ctx context.Context, shieldZoneId int64) (*client.UploadScanningConfig, error) + GetWafEngineConfig func(ctx context.Context) ([]client.WafConfigVariable, error) + ListAccessLists func(ctx context.Context, shieldZoneId int64) (*client.AccessListsResponse, error) + ListCustomWafRules func(ctx context.Context, shieldZoneId int64, page, perPage int) (pagination.PageResponse[*client.CustomWafRule], error) + ListRateLimits func(ctx context.Context, shieldZoneId int64, page, perPage int) (pagination.PageResponse[*client.RateLimitRule], error) + ListShieldZones func(ctx context.Context, page, perPage int) (pagination.PageResponse[*client.ShieldZone], error) + ListTriggeredWafRules func(ctx context.Context, shieldZoneId int64) ([]*client.TriggeredRule, error) + ListWafProfiles func(ctx context.Context) ([]*client.WafProfile, error) + ListWafRules func(ctx context.Context, shieldZoneId int64) ([]*client.WafRuleMainGroup, error) + UpdateAccessListConfig func(ctx context.Context, shieldZoneId, configId int64, ...) error + UpdateBotDetection func(ctx context.Context, shieldZoneId int64, body *client.BotDetectionUpdate) error + UpdateCustomAccessList func(ctx context.Context, shieldZoneId, id int64, ...) (*client.CustomAccessList, error) + UpdateCustomWafRule func(ctx context.Context, id int64, body *client.CustomWafRuleUpdate) (*client.CustomWafRule, error) + UpdateRateLimit func(ctx context.Context, id int64, body *client.RateLimitRuleUpdate) (*client.RateLimitRule, error) + UpdateShieldZone func(ctx context.Context, id int64, body *client.ShieldZoneUpdate) (*client.ShieldZoneResponse, error) + UpdateTriggeredWafRule func(ctx context.Context, shieldZoneId int64, body *client.TriggeredRuleUpdate) error + UpdateUploadScanning func(ctx context.Context, shieldZoneId int64, body *client.UploadScanningUpdate) error + type StatisticsAPI interface + GetStatistics func(ctx context.Context, opts client.StatisticsOptions) (*client.Statistics, error) + type StorageAPI interface + DeleteFile func(ctx context.Context, zoneName, path string) error + DownloadFile func(ctx context.Context, zoneName, path string) (io.ReadCloser, int64, error) + ListFiles func(ctx context.Context, zoneName, path string) ([]client.StorageObject, error) + UploadFile func(ctx context.Context, zoneName, path string, body io.Reader, size int64, ...) error + type StorageZoneAPI interface + CreateStorageZone func(ctx context.Context, body *client.StorageZoneCreate) (*client.StorageZone, error) + DeleteStorageZone func(ctx context.Context, id int64, deleteLinkedPullZones bool) error + FindStorageZoneByName func(ctx context.Context, name string) (*client.StorageZone, error) + GetStorageZone func(ctx context.Context, id int64) (*client.StorageZone, error) + ListStorageZones func(ctx context.Context, page, perPage int, search string, includeDeleted bool) (pagination.PageResponse[*client.StorageZone], error) + ResetStorageZonePassword func(ctx context.Context, id int64) error + ResetStorageZoneReadOnlyPassword func(ctx context.Context, id int64) error + UpdateStorageZone func(ctx context.Context, id int64, body *client.StorageZoneUpdate) error + type StreamAPI interface + AddCaption func(ctx context.Context, libraryId int64, videoId, srclang string, ...) error + CreateCollection func(ctx context.Context, libraryId int64, body *client.CollectionCreate) (*client.Collection, error) + CreateVideo func(ctx context.Context, libraryId int64, body *client.VideoCreate) (*client.Video, error) + DeleteCaption func(ctx context.Context, libraryId int64, videoId, srclang string) error + DeleteCollection func(ctx context.Context, libraryId int64, collectionId string) error + DeleteVideo func(ctx context.Context, libraryId int64, videoId string) error + FetchVideo func(ctx context.Context, libraryId int64, body *client.VideoFetch, ...) (*client.StatusModel, error) + GetCollection func(ctx context.Context, libraryId int64, collectionId string) (*client.Collection, error) + GetVideo func(ctx context.Context, libraryId int64, videoId string) (*client.Video, error) + GetVideoHeatmap func(ctx context.Context, libraryId int64, videoId string) (*client.VideoHeatmap, error) + GetVideoStatistics func(ctx context.Context, libraryId int64, dateFrom, dateTo string, hourly bool, ...) (*client.VideoStatistics, error) + ListCollections func(ctx context.Context, libraryId int64, page, itemsPerPage int, ...) (pagination.PageResponse[*client.Collection], error) + ListVideos func(ctx context.Context, libraryId int64, page, itemsPerPage int, ...) (pagination.PageResponse[*client.Video], error) + ReencodeVideo func(ctx context.Context, libraryId int64, videoId string) (*client.Video, error) + TranscribeVideo func(ctx context.Context, libraryId int64, videoId string, ...) error + UpdateCollection func(ctx context.Context, libraryId int64, collectionId string, ...) error + UpdateVideo func(ctx context.Context, libraryId int64, videoId string, body *client.VideoUpdate) error + UploadVideo func(ctx context.Context, libraryId int64, videoId string, body io.Reader, ...) error + type VideoLibraryAPI interface + CreateVideoLibrary func(ctx context.Context, body *client.VideoLibraryCreate) (*client.VideoLibrary, error) + DeleteVideoLibrary func(ctx context.Context, id int64) error + GetVideoLibrary func(ctx context.Context, id int64) (*client.VideoLibrary, error) + ListVideoLibraries func(ctx context.Context, page, perPage int, search string) (pagination.PageResponse[*client.VideoLibrary], error) + ListVideoLibraryLanguages func(ctx context.Context) ([]client.VideoLibraryLanguage, error) + ResetVideoLibraryApiKey func(ctx context.Context, id int64) error + UpdateVideoLibrary func(ctx context.Context, id int64, body *client.VideoLibraryUpdate) (*client.VideoLibrary, error)