A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/terramate-io/terramate/cloud@v0.14.4 below:

cloud package - github.com/terramate-io/terramate/cloud - Go Packages

Package cloud implements a client SDK for communication with the cloud API.

Package cloud implements the SDK for communicating with the Terramate Cloud.

View Source
const (
	
	PreviewsPath = "/v1/previews"
	
	StackPreviewsPath = "/v1/stack_previews"
)
View Source
const (
	
	WellKnownCLIPath = "/.well-known/cli.json"

	
	SingleSignOnDetailByNamePath = "/v1/organizations/name"

	
	UsersPath = "/v1/users"
	
	MembershipsPath = "/v1/memberships"
	
	DeploymentsPath = "/v1/deployments"
	
	DriftsPath = "/v1/drifts"
	
	StacksPath = "/v1/stacks"
	
	ReviewRequestsPath = "/v1/review_requests"
	
	StorePath = "/v1/store"
)

DefaultLogBatchSize is the default batch size.

DefaultLogSyncInterval is the maximum idle duration before a sync could happen.

DefaultTimeout is a (optional) good default timeout to be used by TMC clients.

This section is empty.

func BaseDomain added in v0.12.0

BaseDomain returns the official API base domain for the Terramate Cloud.

BaseURL returns the official API base URL for the Terramate Cloud.

HTMLURL returns the Terramate Cloud frontend URL.

type BufferGroup struct {
	
}

BufferGroup manages a group of synchronized buffers.

NewBufferGroup creates a new buffer group with an optional LogSyncer.

NewBuffer creates a new synchronized buffer.

Wait waits for the processing all output for the buffers within this group. If a LogSyncher is attached, it will also wait for it to finish. After calling this method, it's not safe to call any other method, as it closes the internal channels and shutdown all goroutines.

Client is the cloud SDK client.

NewClient creates a new cloud client. It uses the default region (EU) and calls BaseURL(region) to set the base URL if WithBaseURL is not provided.

BaseURL returns the API base URL of the client.

CheckVersion checks if current Terramate version can be used to communicate with the cloud.

CreateDeploymentStacks creates a new deployment for provided stacks payload.

CreatePreview creates a new preview in the cloud

CreateStackDrift pushes a new drift status for the given stack.

CreateStoreOutput creates a new output in the Terramate Cloud store.

Credential returns the cloud credential.

DeleteStoreOutput deletes the output from the Terramate Cloud store.

DriftDetails retrieves details of the given driftID.

GetOrgSingleSignOnID returns the organization SSO ID.

GetStack retrieves the details of the stack with given repo and metaID.

GetStoreOutput retrieves the output from the Terramate Cloud store.

HTTPClient returns the HTTP client used by the client.

ListReviewRequests retrieves the review requests for the given organization.

LookupStoreOutput retrieves the output from the Terramate Cloud store by its key.

MemberOrganizations returns all organizations which are associated with the user.

Region returns the region of the client.

SetCredential sets the client cloud credential.

StackLastDrift returns the drifts of the given stack.

StacksByStatus returns all stacks for the given organization. It paginates as needed and returns the total stacks response.

func (*Client) SyncCommandLogs added in v0.5.0

SyncCommandLogs sends a batch of command logs to Terramate Cloud.

URL builds an URL for the given path and queries from the client's base URL.

UpdateDeploymentStacks updates the deployment status of each stack in the payload set.

UpdateStackPreview updates a stack preview in the cloud.

UpdateStoreOutputValue updates the value of the output in the Terramate Cloud store.

Users retrieves the user details for the signed in user.

CreatePreviewOpts is the options for the CreatePreview function

CreatedPreview is the result of CreatePreview

type LogSyncer struct {
	
}

LogSyncer synchronizes log lines, typically from a single buffer group.

NewLogSyncer creates a new log syncer with default parameters.

NewLogSyncerWith creates a new customizable syncer.

ProcessLine creates a new synchronized buffer.

Wait waits for the processing of all log messages. After calling this method, it's not safe to call any other method, as it closes the internal channels and shutdown all goroutines.

Option is a functional option for the client.

WithBaseURL sets the base URL to be used in the client.

WithCredential sets the credential to be used in the client.

WithHTTPClient sets the HTTP client to be used in the client.

WithLogger sets the logger to be used in the client.

WithRegion sets the region to be used in the client.

Options is a list of functional options.

Region is the Terramate Cloud region (EU, US, etc).

Available cloud locations.

ParseRegion parses a user-supplied region name.

String returns the string representation of the region.

Regions is a list of cloud regions.

AvailableRegions returns a list of available cloud regions.

String returns the string representation of the regions list.

RunContext is the context for a run

SyncFunc is the actual synchronizer callback.

UpdateStackPreviewOpts is the options for UpdateStackPreview


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4