Documentation
¶
Index ¶
- Variables
- func Bool(b bool) *bool
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int64(i int64) *int64
- func String(s string) *string
- type Addons
- type Billing
- type CloudProviders
- func (s *CloudProviders) Create(ctx context.Context, request shared.CreateIntegrationRequest) (*operations.CreateIntegrationResponse, error)
- func (s *CloudProviders) CreateCluster(ctx context.Context, request shared.CreateClusterRequest) (*operations.CreateClusterResponse, error)
- func (s *CloudProviders) DeleteCluster(ctx context.Context, clusterID string) (*operations.DeleteClusterResponse, error)
- func (s *CloudProviders) DeleteIntegration(ctx context.Context, integrationID string) (*operations.DeleteIntegrationResponse, error)
- func (s *CloudProviders) Get(ctx context.Context) (*operations.GetCloudProvidersResponse, error)
- func (s *CloudProviders) GetCluster(ctx context.Context, clusterID string) (*operations.GetClusterResponse, error)
- func (s *CloudProviders) GetIntegration(ctx context.Context, integrationID string) (*operations.GetIntegrationResponse, error)
- func (s *CloudProviders) ListClusters(ctx context.Context, cursor *string, page *int64, perPage *int64) (*operations.GetClustersResponse, error)
- func (s *CloudProviders) ListIntegrations(ctx context.Context, cursor *string, page *int64, perPage *int64) (*operations.GetIntegrationsResponse, error)
- func (s *CloudProviders) UpdateCluster(ctx context.Context, updateClusterRequest shared.UpdateClusterRequest, ...) (*operations.UpdateClusterResponse, error)
- func (s *CloudProviders) UpdateIntegration(ctx context.Context, updateIntegrationRequest shared.UpdateIntegrationRequest, ...) (*operations.UpdateIntegrationResponse, error)
- type Domains
- func (s *Domains) Add(ctx context.Context, addSubDomainRequest shared.AddSubDomainRequest, ...) (*operations.AddSubDomainResponse, error)
- func (s *Domains) Assign(ctx context.Context, assignSubDomainRequest shared.AssignSubDomainRequest, ...) (*operations.AssignSubDomainResponse, error)
- func (s *Domains) Create(ctx context.Context, request shared.CreateDomainRequest) (*operations.CreateDomainResponse, error)
- func (s *Domains) Delete(ctx context.Context, domain string) (*operations.DeleteDomainResponse, error)
- func (s *Domains) DeleteCdn(ctx context.Context, cdnRequest shared.CDNRequest, domain string, ...) (*operations.DeleteCDNResponse, error)
- func (s *Domains) DeleteSubdomain(ctx context.Context, domain string, subdomain string) (*operations.DeleteSubDomainResponse, error)
- func (s *Domains) Enable(ctx context.Context, cdnRequest shared.CDNRequest, domain string, ...) (*operations.EnableCDNResponse, error)
- func (s *Domains) Get(ctx context.Context, domain string) (*operations.GetDomainResponse, error)
- func (s *Domains) GetSubdomain(ctx context.Context, domain string, subdomain string) (*operations.GetSubDomainResponse, error)
- func (s *Domains) ListDomains(ctx context.Context, cursor *string, page *int64, perPage *int64) (*operations.ListDomainsResponse, error)
- func (s *Domains) Unassign(ctx context.Context, domain string, subdomain string) (*operations.UnassignSubDomainResponse, error)
- func (s *Domains) Verify(ctx context.Context, domain string, subdomain string) (*operations.VerifySubDomainResponse, error)
- func (s *Domains) VerifyDomain(ctx context.Context, domain string) (*operations.VerifyDomainResponse, error)
- type HTTPClient
- type Integrations
- func (s *Integrations) Add(ctx context.Context, request operations.AddRegistryRequestBody) (*operations.AddRegistryResponse, error)
- func (s *Integrations) Create(ctx context.Context, request operations.CreateLogSinkRequestBody) (*operations.CreateLogSinkResponse, error)
- func (s *Integrations) Delete(ctx context.Context, logSinkID string) (*operations.DeleteLogSinkResponse, error)
- func (s *Integrations) DeleteRegistry(ctx context.Context, credentialID string) (*operations.DeleteRegistryResponse, error)
- func (s *Integrations) GenerateVCSToken(ctx context.Context, customVCSID string, vcsLinkID string) (*operations.GenerateVCSTokenResponse, error)
- func (s *Integrations) Get(ctx context.Context, logSinkID string) (*operations.GetLogSinkResponse, error)
- func (s *Integrations) GetBranches(ctx context.Context, request operations.GetBranchesRequest) (*operations.GetBranchesResponse, error)
- func (s *Integrations) GetRegistry(ctx context.Context, credentialID string) (*operations.GetRegistryResponse, error)
- func (s *Integrations) GetRepos(ctx context.Context, request operations.GetRepositoriesRequest) (*operations.GetRepositoriesResponse, error)
- func (s *Integrations) ListLogSinks(ctx context.Context, cursor *string, perPage *int64) (*operations.GetLogSinksResponse, error)
- func (s *Integrations) ListRegistries(ctx context.Context, cursor *string, perPage *int64) (*operations.GetRegistriesResponse, error)
- func (s *Integrations) ListVcsProviders(ctx context.Context) (*operations.GetVCSProvidersResponse, error)
- func (s *Integrations) Pause(ctx context.Context, logSinkID string) (*operations.PauseLogSinkResponse, error)
- func (s *Integrations) Resume(ctx context.Context, logSinkID string) (*operations.ResumeLogSinkResponse, error)
- func (s *Integrations) Update(ctx context.Context, logSinkRequest shared.LogSinkRequest, logSinkID string) (*operations.UpdateLogSinkResponse, error)
- func (s *Integrations) UpdateRegistry(ctx context.Context, requestBody operations.UpdateRegistryRequestBody, ...) (*operations.UpdateRegistryResponse, error)
- type Miscellaneous
- type Northflank
- type SDKOption
- func WithClient(client HTTPClient) SDKOption
- func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption
- func WithSecurity(security shared.Security) SDKOption
- func WithSecuritySource(security func(context.Context) (shared.Security, error)) SDKOption
- func WithServerIndex(serverIndex int) SDKOption
- func WithServerURL(serverURL string) SDKOption
- func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOption
Constants ¶
This section is empty.
Variables ¶
var ServerList = []string{
"https://api.northflank.com",
}
ServerList contains the list of servers available to the SDK
Functions ¶
Types ¶
type Addons ¶
type Addons struct {
// contains filtered or unexported fields
}
func (*Addons) ListAddonTypes ¶
func (s *Addons) ListAddonTypes(ctx context.Context) (*operations.ListAddonTypesResponse, error)
ListAddonTypes - List addon types Gets information about the available addon types
type Billing ¶
type Billing struct {
// contains filtered or unexported fields
}
func (*Billing) Get ¶
func (s *Billing) Get(ctx context.Context, cursor *string, page *int64, perPage *int64) (*operations.GetPastInvoicesResponse, error)
Get - List invoices Get a list of past invoices
func (*Billing) GetDetails ¶
func (s *Billing) GetDetails(ctx context.Context, request operations.GetInvoiceDetailsRequest) (*operations.GetInvoiceDetailsResponse, error)
GetDetails - Get invoice details Get details about an invoice. If `timestamp` is passed in as a query parameter, this endpoint returns details about the invoice containing that timestamp. Otherwise, returns a preview invoice displaying billing data from after the most recent invoice.
type CloudProviders ¶
type CloudProviders struct {
// contains filtered or unexported fields
}
func (*CloudProviders) Create ¶
func (s *CloudProviders) Create(ctx context.Context, request shared.CreateIntegrationRequest) (*operations.CreateIntegrationResponse, error)
Create integration Creates a new integration.
func (*CloudProviders) CreateCluster ¶
func (s *CloudProviders) CreateCluster(ctx context.Context, request shared.CreateClusterRequest) (*operations.CreateClusterResponse, error)
CreateCluster - Create cluster Creates a new cluster.
func (*CloudProviders) DeleteCluster ¶
func (s *CloudProviders) DeleteCluster(ctx context.Context, clusterID string) (*operations.DeleteClusterResponse, error)
DeleteCluster - Delete cluster Delete the given cluster. Fails if the cluster has associated projects.
func (*CloudProviders) DeleteIntegration ¶
func (s *CloudProviders) DeleteIntegration(ctx context.Context, integrationID string) (*operations.DeleteIntegrationResponse, error)
DeleteIntegration - Delete integration Delete the given integration. Fails if the integration is associated with existing clusters.
func (*CloudProviders) Get ¶
func (s *CloudProviders) Get(ctx context.Context) (*operations.GetCloudProvidersResponse, error)
Get - List providers Lists supported cloud providers
func (*CloudProviders) GetCluster ¶
func (s *CloudProviders) GetCluster(ctx context.Context, clusterID string) (*operations.GetClusterResponse, error)
GetCluster - Get cluster Get information about the given cluster
func (*CloudProviders) GetIntegration ¶
func (s *CloudProviders) GetIntegration(ctx context.Context, integrationID string) (*operations.GetIntegrationResponse, error)
GetIntegration - Get integration Get information about the given integration
func (*CloudProviders) ListClusters ¶
func (s *CloudProviders) ListClusters(ctx context.Context, cursor *string, page *int64, perPage *int64) (*operations.GetClustersResponse, error)
ListClusters - List clusters Lists clusters for the authenticated user or team.
func (*CloudProviders) ListIntegrations ¶
func (s *CloudProviders) ListIntegrations(ctx context.Context, cursor *string, page *int64, perPage *int64) (*operations.GetIntegrationsResponse, error)
ListIntegrations - List integrations Lists integrations for the authenticated user or team.
func (*CloudProviders) UpdateCluster ¶
func (s *CloudProviders) UpdateCluster(ctx context.Context, updateClusterRequest shared.UpdateClusterRequest, clusterID string) (*operations.UpdateClusterResponse, error)
UpdateCluster - Update cluster Update an existing cluster.
func (*CloudProviders) UpdateIntegration ¶
func (s *CloudProviders) UpdateIntegration(ctx context.Context, updateIntegrationRequest shared.UpdateIntegrationRequest, integrationID string) (*operations.UpdateIntegrationResponse, error)
UpdateIntegration - Update integration Update information about the given integration
type Domains ¶
type Domains struct {
// contains filtered or unexported fields
}
func (*Domains) Add ¶
func (s *Domains) Add(ctx context.Context, addSubDomainRequest shared.AddSubDomainRequest, domain string) (*operations.AddSubDomainResponse, error)
Add subdomain Adds a new subdomain to the domain.
func (*Domains) Assign ¶
func (s *Domains) Assign(ctx context.Context, assignSubDomainRequest shared.AssignSubDomainRequest, domain string, subdomain string) (*operations.AssignSubDomainResponse, error)
Assign service to subdomain Assigns a service port to the given subdomain
func (*Domains) Create ¶
func (s *Domains) Create(ctx context.Context, request shared.CreateDomainRequest) (*operations.CreateDomainResponse, error)
Create new domain Registers a new domain
func (*Domains) Delete ¶
func (s *Domains) Delete(ctx context.Context, domain string) (*operations.DeleteDomainResponse, error)
Delete domain Deletes a domain and each of its registered subdomains.
func (*Domains) DeleteCdn ¶
func (s *Domains) DeleteCdn(ctx context.Context, cdnRequest shared.CDNRequest, domain string, subdomain string) (*operations.DeleteCDNResponse, error)
DeleteCdn - Remove CDN from a subdomain Removes the CDN integration from the given subdomain
func (*Domains) DeleteSubdomain ¶
func (s *Domains) DeleteSubdomain(ctx context.Context, domain string, subdomain string) (*operations.DeleteSubDomainResponse, error)
DeleteSubdomain - Delete subdomain Removes a subdomain from a domain.
func (*Domains) Enable ¶
func (s *Domains) Enable(ctx context.Context, cdnRequest shared.CDNRequest, domain string, subdomain string) (*operations.EnableCDNResponse, error)
Enable CDN on a subdomain Enables a CDN integration on the given subdomain
func (*Domains) Get ¶
func (s *Domains) Get(ctx context.Context, domain string) (*operations.GetDomainResponse, error)
Get domain Get the details about a domain
func (*Domains) GetSubdomain ¶
func (s *Domains) GetSubdomain(ctx context.Context, domain string, subdomain string) (*operations.GetSubDomainResponse, error)
GetSubdomain - Get subdomain Gets details about the given subdomain
func (*Domains) ListDomains ¶
func (s *Domains) ListDomains(ctx context.Context, cursor *string, page *int64, perPage *int64) (*operations.ListDomainsResponse, error)
ListDomains - List domains Lists available domains
func (*Domains) Unassign ¶
func (s *Domains) Unassign(ctx context.Context, domain string, subdomain string) (*operations.UnassignSubDomainResponse, error)
Unassign subdomain Removes a subdomain from its assigned service
func (*Domains) Verify ¶
func (s *Domains) Verify(ctx context.Context, domain string, subdomain string) (*operations.VerifySubDomainResponse, error)
Verify subdomain Gets details about the given subdomain
func (*Domains) VerifyDomain ¶
func (s *Domains) VerifyDomain(ctx context.Context, domain string) (*operations.VerifyDomainResponse, error)
VerifyDomain - Verify domain Attempts to verify the domain
type HTTPClient ¶
HTTPClient provides an interface for suplying the SDK with a custom HTTP client
type Integrations ¶
type Integrations struct {
// contains filtered or unexported fields
}
func (*Integrations) Add ¶
func (s *Integrations) Add(ctx context.Context, request operations.AddRegistryRequestBody) (*operations.AddRegistryResponse, error)
Add registry Adds a new set of container registry credentials to this account.
func (*Integrations) Create ¶
func (s *Integrations) Create(ctx context.Context, request operations.CreateLogSinkRequestBody) (*operations.CreateLogSinkResponse, error)
Create log sink Creates a new log sink.
func (*Integrations) Delete ¶
func (s *Integrations) Delete(ctx context.Context, logSinkID string) (*operations.DeleteLogSinkResponse, error)
Delete log sink Deletes a log sink.
func (*Integrations) DeleteRegistry ¶
func (s *Integrations) DeleteRegistry(ctx context.Context, credentialID string) (*operations.DeleteRegistryResponse, error)
DeleteRegistry - Delete registry Deletes a set of registry credential data.
func (*Integrations) GenerateVCSToken ¶
func (s *Integrations) GenerateVCSToken(ctx context.Context, customVCSID string, vcsLinkID string) (*operations.GenerateVCSTokenResponse, error)
GenerateVCSToken - Generate VCS token Generate a token for a specific VCS link.
func (*Integrations) Get ¶
func (s *Integrations) Get(ctx context.Context, logSinkID string) (*operations.GetLogSinkResponse, error)
Get log sink details Gets details about a given log sink.
func (*Integrations) GetBranches ¶
func (s *Integrations) GetBranches(ctx context.Context, request operations.GetBranchesRequest) (*operations.GetBranchesResponse, error)
GetBranches - List branches Gets a list of branches for the repo
func (*Integrations) GetRegistry ¶
func (s *Integrations) GetRegistry(ctx context.Context, credentialID string) (*operations.GetRegistryResponse, error)
GetRegistry - Get registry Views a set of registry credential data.
func (*Integrations) GetRepos ¶
func (s *Integrations) GetRepos(ctx context.Context, request operations.GetRepositoriesRequest) (*operations.GetRepositoriesResponse, error)
GetRepos - List repositories Gets a list of repositories accessible to this account
func (*Integrations) ListLogSinks ¶
func (s *Integrations) ListLogSinks(ctx context.Context, cursor *string, perPage *int64) (*operations.GetLogSinksResponse, error)
ListLogSinks - List log sinks Gets a list of log sinks added to this account.
func (*Integrations) ListRegistries ¶
func (s *Integrations) ListRegistries(ctx context.Context, cursor *string, perPage *int64) (*operations.GetRegistriesResponse, error)
ListRegistries - List registries Lists the container registry credentials saved to this account. Does not display secrets.
func (*Integrations) ListVcsProviders ¶
func (s *Integrations) ListVcsProviders(ctx context.Context) (*operations.GetVCSProvidersResponse, error)
ListVcsProviders - List VCS providers Lists linked version control providers
func (*Integrations) Pause ¶
func (s *Integrations) Pause(ctx context.Context, logSinkID string) (*operations.PauseLogSinkResponse, error)
Pause log sink Pauses a given log sink.
func (*Integrations) Resume ¶
func (s *Integrations) Resume(ctx context.Context, logSinkID string) (*operations.ResumeLogSinkResponse, error)
Resume log sink Resumes a paused log sink.
func (*Integrations) Update ¶
func (s *Integrations) Update(ctx context.Context, logSinkRequest shared.LogSinkRequest, logSinkID string) (*operations.UpdateLogSinkResponse, error)
Update log sink Updates the settings for a log sink.
func (*Integrations) UpdateRegistry ¶
func (s *Integrations) UpdateRegistry(ctx context.Context, requestBody operations.UpdateRegistryRequestBody, credentialID string) (*operations.UpdateRegistryResponse, error)
UpdateRegistry - Update registry Updates a set of registry credential data.
type Miscellaneous ¶
type Miscellaneous struct {
// contains filtered or unexported fields
}
func (*Miscellaneous) GetDNSID ¶
func (s *Miscellaneous) GetDNSID(ctx context.Context) (*operations.GetDNSIDResponse, error)
GetDNSID - Get DNS ID Returns the partially random string used when generating host names for the authenticated account.
func (*Miscellaneous) HealthCheck ¶
func (s *Miscellaneous) HealthCheck(ctx context.Context) (*operations.GetHealthCheckResponse, error)
HealthCheck - Health check Returns api service status
type Northflank ¶
type Northflank struct { Miscellaneous *Miscellaneous Addons *Addons Billing *Billing CloudProviders *CloudProviders Domains *Domains Integrations *Integrations // contains filtered or unexported fields }
Northflank API: This is the API for northflank.com
func New ¶
func New(opts ...SDKOption) *Northflank
New creates a new instance of the SDK with the provided options
type SDKOption ¶
type SDKOption func(*Northflank)
func WithClient ¶
func WithClient(client HTTPClient) SDKOption
WithClient allows the overriding of the default HTTP client used by the SDK
func WithRetryConfig ¶
func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption
func WithSecurity ¶
WithSecurity configures the SDK to use the provided security details
func WithSecuritySource ¶
WithSecuritySource configures the SDK to invoke the Security Source function on each method call to determine authentication
func WithServerIndex ¶
WithServerIndex allows the overriding of the default server by index
func WithServerURL ¶
WithServerURL allows the overriding of the default server URL