Documentation
¶
Index ¶
- type App
- type AppAndChannels
- type AppRelease
- type Channel
- type ChannelRelease
- type Chart
- type ChartRelease
- type ChartStatus
- type Cluster
- type ClusterAddon
- type ClusterAddonObjectStore
- type ClusterAddonStatus
- type ClusterDistributionStatus
- type ClusterExposedPort
- type ClusterPort
- type ClusterStatus
- type ClusterVersion
- type CollectorSpec
- type CompatibilityResult
- type CreateChannelRequest
- type CreateInstallerRequest
- type CustomHostNameOverrides
- type CustomHostname
- type Customer
- type CustomerAdoption
- type DefaultHostnames
- type EmbeddedCluster
- type Entitlement
- type EntitlementSpec
- type EntitlementValue
- type EntitlementValueResponse
- type InstallationTypes
- type InstallerSpec
- type InstallerSpecResponse
- type Instance
- type KotsAppChannel
- type KotsAppCustomHostname
- type KotsAppCustomHostnames
- type KotsAppRelease
- type KotsAppWithChannels
- type KotsChannel
- type KotsCreateReleaseRequest
- type KotsGetReleaseResponse
- type KotsListReleasesResponse
- type KotsPromoteReleaseRequest
- type KotsTestReleaseResponse
- type KotsUpdateReleaseRequest
- type LintLinePosition
- type LintMessage
- type LintPosition
- type ListInstallersResponse
- type Model
- type ModelCollection
- type Network
- type NetworkEventData
- type NetworkReport
- type NetworkReportSummary
- type NetworkReportSummaryDestination
- type NetworkReportSummaryDomain
- type NetworkReportSummarySource
- type NetworkResource
- type NetworkStatus
- type Node
- type NodeGroup
- type PatchChannelRequest
- type PlatformChannel
- type PromoteInstallerRequest
- type Registry
- type RegistryLog
- type ReleaseInfo
- type Tag
- type Tags
- type TotalActiveInactiveCustomers
- type VM
- type VMAddonStatus
- type VMExposedPort
- type VMPort
- type VMStatus
- type VMVersion
- type VersionHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppAndChannels ¶
type AppRelease ¶ added in v0.54.0
type AppRelease struct {
Config string `json:"config,omitempty"`
CreatedAt time.Time `json:"createdAt,omitempty"`
Editable bool `json:"editable,omitempty"`
EditedAt time.Time `json:"editedAt,omitempty"`
Sequence int64 `json:"sequence,omitempty"`
Charts []Chart `json:"charts,omitempty"`
CompatibilityResults []CompatibilityResult `json:"compatibilityResults,omitempty"`
IsHelmOnly bool `json:"isHelmOnly,omitempty"`
}
type Channel ¶
type Channel struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Slug string `json:"channelSlug"`
ReleaseSequence int64 `json:"releaseSequence"`
ReleaseLabel string `json:"releaseLabel"`
ChannelSequence int64 `json:"channelSequence"`
IsArchived bool `json:"isArchived"`
IsHelmOnly bool `json:"isHelmOnly"`
}
type ChannelRelease ¶ added in v0.37.0
type ChannelRelease struct {
AirgapBuildError string `json:"airgapBuildError,omitempty"`
AirgapBuildStatus string `json:"airgapBuildStatus,omitempty"`
AirgapBundleImages []string `json:"airgapBundleImages,omitempty"`
ChannelIcon string `json:"channelIcon,omitempty"`
ChannelId string `json:"channelId,omitempty"`
ChannelName string `json:"channelName,omitempty"`
ChannelSequence int32 `json:"channelSequence,omitempty"`
Created time.Time `json:"created,omitempty"`
ProxyRegistryDomain string `json:"proxyRegistryDomain,omitempty"`
RegistrySecret string `json:"registrySecret,omitempty"`
ReleaseNotes string `json:"releaseNotes,omitempty"`
ReleasedAt time.Time `json:"releasedAt,omitempty"`
Semver string `json:"semver,omitempty"`
Sequence int32 `json:"sequence,omitempty"`
Updated time.Time `json:"updated,omitempty"`
InstallationTypes InstallationTypes `json:"installationTypes,omitempty"`
}
type ChartRelease ¶ added in v0.52.0
type ChartStatus ¶ added in v0.53.1
type ChartStatus string
var ( ChartStatusUnknown ChartStatus = "unknown" ChartStatusPushing ChartStatus = "pushing" ChartStatusPushed ChartStatus = "pushed" ChartStatusError ChartStatus = "error" )
type Cluster ¶ added in v0.44.0
type Cluster struct {
ID string `json:"id"`
Name string `json:"name"`
KubernetesDistribution string `json:"kubernetes_distribution"`
KubernetesVersion string `json:"kubernetes_version"`
NodeGroups []*NodeGroup `json:"node_groups"`
Status ClusterStatus `json:"status"`
LastSchedulingStatus string `json:"last_scheduling_status"`
Network string `json:"network_id"`
CreatedAt time.Time `json:"created_at"`
ExpiresAt time.Time `json:"expires_at"`
TTL string `json:"ttl"`
CreditsPerHourPerCluster int64 `json:"credits_per_hour_per_cluster"`
FlatFee int64 `json:"flat_fee"`
TotalCredits int64 `json:"total_credits"`
EstimatedCost int64 `json:"estimated_cost"` // Represents estimated credits for this cluster based on the TTL
OverlayEndpoint string `json:"overlay_endpoint,omitempty"`
OverlayToken string `json:"overlay_token,omitempty"`
Tags []Tag `json:"tags"`
}
type ClusterAddon ¶ added in v0.72.0
type ClusterAddon struct {
ID string `json:"id"`
ClusterID string `json:"cluster_id"`
Status ClusterAddonStatus `json:"status"`
CreatedAt time.Time `json:"created_at"`
ObjectStore *ClusterAddonObjectStore `json:"object_store,omitempty"`
}
func (*ClusterAddon) TypeName ¶ added in v0.72.0
func (addon *ClusterAddon) TypeName() string
type ClusterAddonObjectStore ¶ added in v0.72.0
type ClusterAddonObjectStore struct {
BucketPrefix string `json:"bucket_prefix"`
BucketName string `json:"bucket_name,omitempty"`
ServiceAccountNamespace string `json:"service_account_namespace,omitempty"`
ServiceAccountName string `json:"service_account_name,omitempty"`
ServiceAccountNameReadOnly string `json:"service_account_name_read_only,omitempty"`
}
type ClusterAddonStatus ¶ added in v0.72.0
type ClusterAddonStatus string
const ( ClusterAddonStatusPending ClusterAddonStatus = "pending" // No attempts to install this addon ClusterAddonStatusApplied ClusterAddonStatus = "applied" // The addon has been applied to the cluster ClusterAddonStatusRunning ClusterAddonStatus = "ready" // The addon is ready to be used ClusterAddonStatusError ClusterAddonStatus = "error" // The addon has an error ClusterAddonStatusRemoving ClusterAddonStatus = "removing" // The addon is being removed ClusterAddonStatusRemoved ClusterAddonStatus = "removed" // The addon has been removed )
type ClusterDistributionStatus ¶ added in v0.59.7
type ClusterExposedPort ¶ added in v0.71.0
type ClusterPort ¶ added in v0.71.0
type ClusterPort struct {
ClusterID string `json:"cluster_id"`
AddonID string `json:"addon_id"`
UpstreamPort int `json:"upstream_port"`
ExposedPorts []ClusterExposedPort `json:"exposed_ports"`
IsWildcard bool `json:"is_wildcard"`
CreatedAt time.Time `json:"created_at"`
Hostname string `json:"hostname"`
PortName string `json:"port_name"`
State ClusterAddonStatus `json:"state"`
}
type ClusterStatus ¶ added in v0.55.0
type ClusterStatus string
const ( ClusterStatusQueued ClusterStatus = "queued" // Not assigned to a runner yet ClusterStatusAssigned ClusterStatus = "assigned" // Assigned to a runner, but have not heard back from the runner ClusterStatusPreparing ClusterStatus = "preparing" // The runner sets this when is receives the request ClusterStatusProvisioning ClusterStatus = "provisioning" // The runner sets this when it starts provisioning ClusterStatusRunning ClusterStatus = "running" // The runner sets this when it is done provisioning or upgrading and available ClusterStatusTerminated ClusterStatus = "terminated" // This is set when the cluster expires or is deleted ClusterStatusError ClusterStatus = "error" // Something unexpected ClusterStatusUpgrading ClusterStatus = "upgrading" // The runner sets this when it starts upgrading ClusterStatusUpgradeError ClusterStatus = "upgrade_error" // Something unexpected during an upgrade ClusterStatusDeleted ClusterStatus = "deleted" )
type ClusterVersion ¶ added in v0.50.0
type ClusterVersion struct {
Name string `json:"short_name"`
Versions []string `json:"versions"`
InstanceTypes []string `json:"instance_types"`
NodesMax int `json:"nodes_max"`
Status *ClusterDistributionStatus `json:"status,omitempty"`
}
type CollectorSpec ¶ added in v0.64.2
type CompatibilityResult ¶ added in v0.57.0
type CompatibilityResult struct {
Distribution string `json:"distribution"`
Version string `json:"version"`
SuccessAt *time.Time `json:"successAt,omitempty"`
SuccessNotes string `json:"successNotes,omitempty"`
FailureAt *time.Time `json:"failureAt,omitempty"`
FailureNotes string `json:"failureNotes,omitempty"`
}
type CreateChannelRequest ¶ added in v0.37.0
type CreateInstallerRequest ¶ added in v0.37.0
type CreateInstallerRequest struct {
Yaml string `json:"yaml"`
}
type CustomHostNameOverrides ¶ added in v0.52.0
type CustomHostNameOverrides struct {
Registry struct {
Hostname string `json:"hostname"`
} `json:"registry"`
Proxy struct {
Hostname string `json:"hostname"`
} `json:"proxy"`
DownloadPortal struct {
Hostname string `json:"hostname"`
} `json:"downloadPortal"`
ReplicatedApp struct {
Hostname string `json:"hostname"`
} `json:"replicatedApp"`
}
type CustomHostname ¶ added in v0.52.0
type CustomHostname struct {
AppID string `json:"app_id"`
TeamID string `json:"team_id"`
OriginServer string `json:"origin_server"`
Hostname string `json:"hostname"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DomainVerificationType string `json:"domain_verification_type"`
DomainVerificationStatus string `json:"domain_verification_status"`
DomainTxtRecordName string `json:"domain_txt_record_name"`
DomainTxtRecordValue string `json:"domain_txt_record_value"`
DomainChallenge string `json:"-"`
DomainChallengeResponse string `json:"-"`
TLSVerificationType string `json:"tls_verification_type"`
TLSVerificationStatus string `json:"tls_verification_status"`
TLSTxtRecordName string `json:"tls_txt_record_name"`
TLSTxtRecordValue string `json:"tls_txt_record_value"`
TLSHTTPChallenge string `json:"-"`
TLSHTTPBody string `json:"-"`
CloudflareCustomHostnameID string `json:"cloudflare_custom_hostname_id"`
CloudflareWorkerRouteID string `json:"cloudflare_worker_route_id,omitempty"`
VerificationErrors []string `json:"verification_errors"`
FailureCount int `json:"failure_count"`
FailureReason string `json:"failure_reason"`
}
CustomHostname represents a custom hostname in cloudflare for a team
type Customer ¶ added in v0.18.0
type Customer struct {
ID string `json:"id"`
CustomID string `json:"customId"`
Name string `json:"name"`
Email string `json:"email"`
Channels []Channel `json:"channels"`
Type string `json:"type"`
Expires *util.Time `json:"expiresAt"`
Instances []Instance `json:"instances"`
InstallationID string `json:"installationId"`
Entitlements []Entitlement `json:"entitlements"`
IsAirgapEnabled bool `json:"airgap"`
IsEmbeddedClusterDownloadEnabled bool `json:"isEmbeddedClusterDownloadEnabled"`
IsEmbeddedClusterMultinodeEnabled bool `json:"isEmbeddedClusterMultinodeEnabled"`
IsGeoaxisSupported bool `json:"isGeoaxisSupported"`
IsHelmVMDownloadEnabled bool `json:"isHelmVmDownloadEnabled"`
IsIdentityServiceSupported bool `json:"isIdentityServiceSupported"`
IsInstallerSupportEnabled bool `json:"isInstallerSupportEnabled"`
IsKotsInstallEnabled bool `json:"isKotsInstallEnabled"`
IsSnapshotSupported bool `json:"isSnapshotSupported"`
IsSupportBundleUploadEnabled bool `json:"isSupportBundleUploadEnabled"`
IsGitopsSupported bool `json:"isGitopsSupported"`
}
type CustomerAdoption ¶ added in v0.37.0
type CustomerAdoption struct {
ChannelId string `json:"channelId,omitempty"`
Count int32 `json:"count,omitempty"`
Percent float32 `json:"percent,omitempty"`
ReleaseSequence int32 `json:"releaseSequence,omitempty"`
Semver string `json:"semver,omitempty"`
TotalOnChannel int64 `json:"totalOnChannel,omitempty"`
}
type DefaultHostnames ¶ added in v0.124.0
type DefaultHostnames struct {
Registry string `json:"registry"`
Proxy string `json:"proxy"`
DownloadPortal string `json:"downloadPortal"`
ReplicatedApp string `json:"replicatedApp"`
}
DefaultHostnames represents the default hostnames for a kots app
type EmbeddedCluster ¶ added in v0.110.0
type Entitlement ¶ added in v0.73.2
type EntitlementSpec ¶ added in v0.11.0
type EntitlementValue ¶ added in v0.11.0
type EntitlementValueResponse ¶ added in v0.37.0
type InstallationTypes ¶ added in v0.110.0
type InstallationTypes struct {
EmbeddedCluster EmbeddedCluster `json:"embeddedCluster,omitempty"`
}
type InstallerSpec ¶ added in v0.21.0
type InstallerSpec struct {
AppID string `json:"appId"`
KurlInstallerID string `json:"kurlInstallerID"`
Sequence int64 `json:"sequence"`
YAML string `json:"yaml"`
ActiveChannels []Channel `json:"channels"`
CreatedAt util.Time `json:"created"`
CreatedAtString string `json:"createdAt"`
Immutable bool `json:"isInstallerNotEditable"`
}
type InstallerSpecResponse ¶ added in v0.37.0
type InstallerSpecResponse struct {
Body InstallerSpec `json:"installer"`
}
type Instance ¶ added in v0.51.0
type Instance struct {
LicenseID string `json:"licenseId,omitempty"`
InstanceID string `json:"instanceId,omitempty"`
ClusterID string `json:"clusterId,omitempty"`
CreatedAt time.Time `json:"createdAt,omitempty"`
LastActive time.Time `json:"lastActive,omitempty"`
AppStatus string `json:"appStatus,omitempty"`
Active bool `json:"active,omitempty"`
VersionHistory []VersionHistory `json:"versionHistory,omitempty"`
Tags Tags `json:"tags,omitempty"` // must be Tags type for template evaluation
}
func (Instance) LatestVersion ¶ added in v0.64.0
Used for template evaluation
type KotsAppChannel ¶ added in v0.37.0
type KotsAppCustomHostname ¶ added in v0.52.0
type KotsAppCustomHostname struct {
AppID string `json:"app_id"`
IsDefault bool `json:"is_default"`
CustomHostname
}
KotsAppCustomHostname represents a custom hostname configured for a kots app
type KotsAppCustomHostnames ¶ added in v0.52.0
type KotsAppCustomHostnames struct {
Registry []KotsAppCustomHostname `json:"registry"`
Proxy []KotsAppCustomHostname `json:"proxy"`
DownloadPortal []KotsAppCustomHostname `json:"downloadPortal"`
ReplicatedApp []KotsAppCustomHostname `json:"replicatedApp"`
}
KotsAppCustomHostnames all custom hostnames configured for a kots app
type KotsAppRelease ¶ added in v0.33.2
type KotsAppRelease struct {
AppID string `json:"appId"`
Sequence int64 `json:"sequence"`
CreatedAt time.Time `json:"created"`
IsArchived bool `json:"isArchived"`
Spec string `json:"spec"`
ReleaseNotes string `json:"releaseNotes"`
IsReleaseNotEditable bool `json:"isReleaseNotEditable"`
Channels []*Channel `json:"channels"`
Charts []Chart `json:"charts"`
CompatibilityResults []CompatibilityResult `json:"compatibilityResults"`
IsHelmOnly bool `json:"isHelmOnly"`
}
type KotsAppWithChannels ¶ added in v0.37.0
type KotsAppWithChannels struct {
Channels []Channel `json:"channels,omitempty"`
Created time.Time `json:"created,omitempty"`
Description string `json:"description,omitempty"`
Id string `json:"id,omitempty"`
IsArchived bool `json:"isArchived,omitempty"`
IsKotsApp bool `json:"isKotsApp,omitempty"`
IsFoundation bool `json:"isFoundation,omitempty"`
Name string `json:"name,omitempty"`
RenamedAt time.Time `json:"renamedAt,omitempty"`
Slug string `json:"slug,omitempty"`
TeamId string `json:"teamId,omitempty"`
}
type KotsChannel ¶ added in v0.37.0
type KotsChannel struct {
AdoptionRate []CustomerAdoption `json:"adoptionRate,omitempty"`
AppId string `json:"appId,omitempty"`
BuildAirgapAutomatically bool `json:"buildAirgapAutomatically,omitempty"`
ChannelIcon string `json:"channelIcon,omitempty"`
ChannelSequence int32 `json:"channelSequence,omitempty"`
ChannelSlug string `json:"channelSlug,omitempty"`
Created time.Time `json:"created,omitempty"`
CurrentVersion string `json:"currentVersion,omitempty"`
Customers *TotalActiveInactiveCustomers `json:"customers,omitempty"`
Description string `json:"description,omitempty"`
Id string `json:"id,omitempty"`
IsArchived bool `json:"isArchived,omitempty"`
IsDefault bool `json:"isDefault,omitempty"`
Name string `json:"name,omitempty"`
NumReleases int32 `json:"numReleases,omitempty"`
IsHelmOnly bool `json:"isHelmOnly,omitempty"`
ReleaseNotes string `json:"releaseNotes,omitempty"`
// TODO: set these (see kotsChannelToSchema function)
ReleaseSequence int32 `json:"releaseSequence,omitempty"`
Releases []ChannelRelease `json:"releases,omitempty"`
Updated time.Time `json:"updated,omitempty"`
ReplicatedRegistryDomain string `json:"replicatedRegistryDomain"`
CustomHostNameOverrides CustomHostNameOverrides `json:"customHostNameOverrides"`
ChartReleases []ChartRelease `json:"chartReleases"`
}
func (*KotsChannel) ToChannel ¶ added in v0.55.0
func (c *KotsChannel) ToChannel() *Channel
type KotsCreateReleaseRequest ¶ added in v0.36.1
type KotsCreateReleaseRequest struct {
SpecGzip []byte `json:"spec_gzip"`
}
type KotsGetReleaseResponse ¶ added in v0.36.1
type KotsGetReleaseResponse struct {
Release KotsAppRelease `json:"release"`
}
type KotsListReleasesResponse ¶ added in v0.36.1
type KotsListReleasesResponse struct {
Releases []*KotsAppRelease `json:"releases"`
}
KotsListReleasesResponse contains the JSON releases list
type KotsPromoteReleaseRequest ¶ added in v0.37.0
type KotsPromoteReleaseRequest struct {
ReleaseNotes string `json:"releaseNotes"`
VersionLabel string `json:"versionLabel"`
IsRequired bool `json:"isRequired"`
ChannelIDs []string `json:"channelIds"`
IgnoreWarnings bool `json:"ignoreWarnings"`
// Omits channels, charts, and compatibilityResults details in the response body
OmitDetailsInResponse bool `json:"omitDetailsInResponse"`
}
type KotsTestReleaseResponse ¶ added in v0.44.0
type KotsTestReleaseResponse struct {
}
type KotsUpdateReleaseRequest ¶ added in v0.36.1
type KotsUpdateReleaseRequest struct {
SpecGzip []byte `json:"spec_gzip"`
}
type LintLinePosition ¶ added in v0.8.0
type LintMessage ¶ added in v0.8.0
type LintMessage struct {
Rule string `json:"rule"`
Type string `json:"type"`
Path string `json:"path"`
Message string `json:"message"`
Positions []*LintPosition `json:"positions"`
}
type LintPosition ¶ added in v0.8.0
type LintPosition struct {
Path string `json:"path"`
Start LintLinePosition `json:"start"`
End LintLinePosition `json:"end"`
}
type ListInstallersResponse ¶ added in v0.37.1
type ListInstallersResponse struct {
Body []InstallerSpec `json:"installers"`
}
type ModelCollection ¶ added in v0.77.0
type Network ¶ added in v0.85.0
type Network struct {
ID string `json:"id"`
Name string `json:"name"`
Status NetworkStatus `json:"status"`
LastSchedulingStatus string `json:"last_scheduling_status"`
CreatedAt time.Time `json:"created_at"`
ExpiresAt time.Time `json:"expires_at"`
TTL string `json:"ttl"`
OverlayEndpoint string `json:"overlay_endpoint,omitempty"`
OverlayToken string `json:"overlay_token,omitempty"`
Policy string `json:"policy,omitempty"`
CollectReport bool `json:"collect_report,omitempty"`
HasReport bool `json:"has_report,omitempty"`
Resources []*NetworkResource `json:"resources,omitempty"`
}
type NetworkEventData ¶ added in v0.107.0
type NetworkEventData struct {
Timestamp string `json:"timestamp,omitempty"`
SrcIP string `json:"srcIp,omitempty"`
DstIP string `json:"dstIp,omitempty"`
SrcPort int `json:"srcPort,omitempty"`
DstPort int `json:"dstPort,omitempty"`
SourcePod string `json:"sourcePod,omitempty"`
DestinationPod string `json:"dstPod,omitempty"`
Protocol string `json:"proto,omitempty"`
Command string `json:"comm,omitempty"`
PID int `json:"pid,omitempty"`
LikelyService string `json:"likelyService,omitempty"`
DNSQueryName string `json:"dnsQueryName,omitempty"`
}
type NetworkReport ¶ added in v0.107.0
type NetworkReport struct {
Events []*NetworkEventData `json:"events"`
}
type NetworkReportSummary ¶ added in v0.116.0
type NetworkReportSummary struct {
ID string `json:"id"`
NetworkID string `json:"network_id"`
TotalEvents int `json:"total_events"`
TimeRangeStart time.Time `json:"time_range_start"`
TimeRangeEnd time.Time `json:"time_range_end"`
CreatedAt time.Time `json:"created_at"`
Domains []NetworkReportSummaryDomain `json:"domains,omitempty"`
Destinations []NetworkReportSummaryDestination `json:"destinations,omitempty"`
}
type NetworkReportSummaryDestination ¶ added in v0.116.0
type NetworkReportSummaryDomain ¶ added in v0.116.0
type NetworkReportSummarySource ¶ added in v0.116.0
type NetworkResource ¶ added in v0.116.0
type NetworkStatus ¶ added in v0.85.0
type NetworkStatus string
const ( NetworkStatusQueued NetworkStatus = "queued" // Not assigned to a runner yet NetworkStatusAssigned NetworkStatus = "assigned" // Assigned to a runner, but have not heard back from the runner NetworkStatusPreparing NetworkStatus = "preparing" // The runner sets this when is receives the request NetworkStatusProvisioning NetworkStatus = "provisioning" // The runner sets this when it starts provisioning NetworkStatusVerifying NetworkStatus = "verifying" // The runner sets this when it is done provisioning and available NetworkStatusRunning NetworkStatus = "running" // The runner sets this when it is done verifying and available NetworkStatusDeleting NetworkStatus = "deleting" // The runner sets this when it is deleting the network NetworkStatusDeleted NetworkStatus = "deleted" // The runner sets this when it has deleted the network NetworkStatusTerminated NetworkStatus = "terminated" // This is set when the vm is moved to the history table NetworkStatusError NetworkStatus = "error" // Something unexpected )
type NodeGroup ¶ added in v0.66.0
type NodeGroup struct {
ID string `json:"id"`
IsDefault bool `json:"is_default"`
InstanceType string `json:"instance_type"`
Name string `json:"name"`
NodeCount int `json:"node_count"`
DiskGiB int64 `json:"disk_gib"`
CreatedAt time.Time `json:"created_at"`
ProvisioningAt *time.Time `json:"-"`
RunningAt *time.Time `json:"running_at"`
CreditsPerHour int64 `json:"credits_per_hour"`
TotalCredits int64 `json:"total_credits,omitempty"` // this is only present after the cluster is stopped
MinutesBilled int64 `json:"minutes_billed"`
Nodes []*Node `json:"nodes"`
}
type PatchChannelRequest ¶ added in v0.81.3
type PatchChannelRequest struct {
SemverRequired *bool `json:"semverRequired,omitempty"`
}
type PlatformChannel ¶ added in v0.12.0
type PromoteInstallerRequest ¶ added in v0.37.0
type RegistryLog ¶ added in v0.40.4
type ReleaseInfo ¶
type ReleaseInfo struct {
ActiveChannels []Channel `json:"activeChannels"`
AppID string `json:"appId"`
CreatedAt time.Time `json:"createdAt"`
EditedAt time.Time `json:"editedAt"`
Editable bool `json:"editable"`
Sequence int64 `json:"sequence"`
Version string `json:"version"`
Charts []Chart `json:"charts"`
IsHelmOnly bool `json:"isHelmOnly"`
}
type TotalActiveInactiveCustomers ¶ added in v0.37.0
type VM ¶ added in v0.82.0
type VM struct {
ID string `json:"id"`
Name string `json:"name"`
Distribution string `json:"distribution"`
InstanceType string `json:"instance_type"`
Version string `json:"version"`
Network string `json:"network_id"`
DiskGiB int64 `json:"disk_gib"`
Status VMStatus `json:"status"`
LastSchedulingStatus string `json:"last_scheduling_status"`
CreatedAt time.Time `json:"created_at"`
ExpiresAt time.Time `json:"expires_at"`
TTL string `json:"ttl"`
CreditsPerHour int64 `json:"credits_per_hour"`
FlatFee int64 `json:"flat_fee"`
TotalCredits int64 `json:"total_credits"`
EstimatedCost int64 `json:"estimated_cost"` // Represents estimated credits for this vm based on the TTL
DirectSSHPort int64 `json:"direct_ssh_port,omitempty"`
DirectSSHEndpoint string `json:"direct_ssh_endpoint,omitempty"`
Tags []Tag `json:"tags"`
}
type VMAddonStatus ¶ added in v0.84.0
type VMAddonStatus string
const ( VMAddonStatusPending VMAddonStatus = "pending" // No attempts to install this addon VMAddonStatusApplied VMAddonStatus = "applied" // The addon has been applied to the vm VMAddonStatusRunning VMAddonStatus = "ready" // The addon is ready to be used VMAddonStatusError VMAddonStatus = "error" // The addon has an error VMAddonStatusRemoving VMAddonStatus = "removing" // The addon is being removed VMAddonStatusRemoved VMAddonStatus = "removed" // The addon has been removed )
type VMExposedPort ¶ added in v0.84.0
type VMPort ¶ added in v0.84.0
type VMPort struct {
VMID string `json:"vm_id"`
AddonID string `json:"addon_id"`
UpstreamPort int `json:"upstream_port"`
ExposedPorts []VMExposedPort `json:"exposed_ports"`
CreatedAt time.Time `json:"created_at"`
Hostname string `json:"hostname"`
PortName string `json:"port_name"`
State VMAddonStatus `json:"state"`
}
type VMStatus ¶ added in v0.83.2
type VMStatus string
const ( VMStatusQueued VMStatus = "queued" // Not assigned to a runner yet VMStatusAssigned VMStatus = "assigned" // Assigned to a runner, but have not heard back from the runner VMStatusPreparing VMStatus = "preparing" // The runner sets this when is receives the request VMStatusProvisioning VMStatus = "provisioning" // The runner sets this when it starts provisioning VMStatusVerifying VMStatus = "verifying" // The runner sets this when it is done provisioning and available VMStatusRunning VMStatus = "running" // The runner sets this when it is done provisioning or upgrading and available VMStatusTerminated VMStatus = "terminated" // This is set when the cluster expires or is deleted VMStatusError VMStatus = "error" // Something unexpected VMStatusDeleted VMStatus = "deleted" )
type VMVersion ¶ added in v0.83.2
type VMVersion struct {
Name string `json:"short_name"`
Versions []string `json:"versions"`
InstanceTypes []string `json:"instance_types"`
Status *ClusterDistributionStatus `json:"status,omitempty"`
}
type VersionHistory ¶ added in v0.51.0
type VersionHistory struct {
InstanceID string `json:"instanceId,omitempty"`
ClusterID string `json:"clusterId,omitempty"`
VersionLabel string `json:"versionLabel,omitempty"`
DownStreamChannelID string `json:"downstreamChannelId,omitempty"`
DownStreamReleaseSequence int32 `json:"downstreamReleaseSequence,omitempty"`
IntervalStart time.Time `json:"intervalStart,omitempty"`
IntervalLast time.Time `json:"intervallast,omitempty"`
RepHelmCount int32 `json:"repHelmCount,omitempty"`
NativeHelmCount int32 `json:"nativeHelmCount,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.