Documentation ¶
Overview ¶
Package client provides a client over the REST HTTP API of Calyptia Cloud.
Index ¶
- Constants
- type Client
- func (c *Client) AWSCustomerRedirect(ctx context.Context, amazonMarketplaceToken string) (*url.URL, error)
- func (c *Client) AcceptInvitation(ctx context.Context, payload types.AcceptInvitation) error
- func (c *Client) ActiveTraceSession(ctx context.Context, pipelineID string) (types.TraceSession, error)
- func (c *Client) AddAgentMetrics(ctx context.Context, agentID string, payload []byte) error
- func (c *Client) Agent(ctx context.Context, agentID string) (types.Agent, error)
- func (c *Client) AgentConfigHistory(ctx context.Context, agentID string, params types.AgentConfigHistoryParams) (types.AgentConfigHistory, error)
- func (c *Client) AgentErrors(ctx context.Context, in types.ListAgentErrors) (types.AgentErrors, error)
- func (c *Client) AgentMetrics(ctx context.Context, agentID string) (types.MetricsSummary, error)
- func (c *Client) AgentMetricsByPlugin(ctx context.Context, agentID string) (types.MetricsSummaryPlugin, error)
- func (c *Client) AgentMetricsOverTime(ctx context.Context, agentID string, params types.MetricsParams) (types.MetricsOverTime, error)
- func (c *Client) AgentMetricsOverTimeByPlugin(ctx context.Context, agentID string, params types.MetricsParams) (types.MetricsOverTimeByPlugin, error)
- func (c *Client) Agents(ctx context.Context, projectID string, params types.AgentsParams) (types.Agents, error)
- func (c *Client) AllCoreInstanceFiles(ctx context.Context, coreInstanceID string) ([]types.CoreInstanceFile, error)
- func (c *Client) AllCoreInstanceSecrets(ctx context.Context, coreInstanceID string) ([]types.CoreInstanceSecret, error)
- func (c *Client) AuditLogs(ctx context.Context, params types.ListAuditLogs) (types.AuditLogs, error)
- func (c *Client) Clone() *Client
- func (c *Client) ClusterObject(ctx context.Context, checkID string) (types.ClusterObject, error)
- func (c *Client) ClusterObjectRegex(ctx context.Context, regexID string) (types.ClusterObjectRegex, error)
- func (c *Client) ClusterObjectRegexes(ctx context.Context, in types.ListClusterObjectRegexes) (types.ClusterObjectRegexes, error)
- func (c *Client) ClusterObjects(ctx context.Context, coreInstanceID string, params types.ClusterObjectParams) (types.ClusterObjects, error)
- func (c *Client) ConfigSection(ctx context.Context, configSectionID string) (types.ConfigSection, error)
- func (c *Client) ConfigSections(ctx context.Context, projectID string, params types.ConfigSectionsParams) (types.ConfigSections, error)
- func (c *Client) CoreInstance(ctx context.Context, instanceID string) (types.CoreInstance, error)
- func (c *Client) CoreInstanceCheck(ctx context.Context, checkID string) (types.CoreInstanceCheck, error)
- func (c *Client) CoreInstanceChecks(ctx context.Context, coreInstanceID string, ...) (types.CoreInstanceChecks, error)
- func (c *Client) CoreInstanceFiles(ctx context.Context, in types.ListCoreInstanceFiles) (types.CoreInstanceFiles, error)
- func (c *Client) CoreInstanceMetrics(ctx context.Context, coreInstanceID string) (types.MetricsSummary, error)
- func (c *Client) CoreInstanceMetricsByPlugin(ctx context.Context, coreInstanceID string) (types.MetricsSummaryPlugin, error)
- func (c *Client) CoreInstanceMetricsOverTime(ctx context.Context, coreInstanceID string, params types.MetricsParams) (types.MetricsOverTime, error)
- func (c *Client) CoreInstanceMetricsOverTimeByPlugin(ctx context.Context, coreInstanceID string, params types.MetricsParams) (types.MetricsOverTimeByPlugin, error)
- func (c *Client) CoreInstancePing(ctx context.Context, instanceID string) (types.CoreInstancePingResponse, error)
- func (c *Client) CoreInstanceSecrets(ctx context.Context, in types.ListCoreInstanceSecrets) (types.CoreInstanceSecrets, error)
- func (c *Client) CoreInstances(ctx context.Context, projectID string, params types.CoreInstancesParams) (types.CoreInstances, error)
- func (c *Client) CreateAWSContractFromToken(ctx context.Context, in types.CreateAWSContractFromToken) error
- func (c *Client) CreateAgentError(ctx context.Context, in types.CreateAgentError) (types.Created, error)
- func (c *Client) CreateClusterObject(ctx context.Context, coreInstanceID string, payload types.CreateClusterObject) (types.Created, error)
- func (c *Client) CreateClusterObjectRegex(ctx context.Context, in types.CreateClusterObjectRegex) (types.Created, error)
- func (c *Client) CreateConfigSection(ctx context.Context, projectID string, in types.CreateConfigSection) (types.Created, error)
- func (c *Client) CreateCoreInstance(ctx context.Context, payload types.CreateCoreInstance) (types.CreatedCoreInstance, error)
- func (c *Client) CreateCoreInstanceCheck(ctx context.Context, coreInstanceID string, ...) (types.Created, error)
- func (c *Client) CreateCoreInstanceFile(ctx context.Context, in types.CreateCoreInstanceFile) (types.Created, error)
- func (c *Client) CreateCoreInstanceSecret(ctx context.Context, in types.CreateCoreInstanceSecret) (types.Created, error)
- func (c *Client) CreateEnvironment(ctx context.Context, projectID string, payload types.CreateEnvironment) (types.CreatedEnvironment, error)
- func (c *Client) CreateFleet(ctx context.Context, in types.CreateFleet) (types.Created, error)
- func (c *Client) CreateFleetFile(ctx context.Context, fleetID string, payload types.CreateFleetFile) (types.Created, error)
- func (c *Client) CreateIngestCheck(ctx context.Context, coreInstanceID string, payload types.CreateIngestCheck) (types.Created, error)
- func (c *Client) CreateInvitation(ctx context.Context, projectID string, payload types.CreateInvitation) error
- func (c *Client) CreateMetrics(ctx context.Context, in types.CreateMetrics) (types.CreatedMetrics, error)
- func (c *Client) CreatePipeline(ctx context.Context, instanceID string, payload types.CreatePipeline) (types.CreatedPipeline, error)
- func (c *Client) CreatePipelineCheck(ctx context.Context, pipelineID string, payload types.CreatePipelineCheck) (types.Created, error)
- func (c *Client) CreatePipelineFile(ctx context.Context, pipelineID string, payload types.CreatePipelineFile) (types.Created, error)
- func (c *Client) CreatePipelineLog(ctx context.Context, in types.CreatePipelineLog) (types.Created, error)
- func (c *Client) CreatePipelinePort(ctx context.Context, pipelineID string, payload types.CreatePipelinePort) (types.CreatedPipelinePort, error)
- func (c *Client) CreatePipelineSecret(ctx context.Context, pipelineID string, payload types.CreatePipelineSecret) (types.Created, error)
- func (c *Client) CreateProcessingRule(ctx context.Context, in types.CreateProcessingRule) (types.CreatedProcessingRule, error)
- func (c *Client) CreateProcessingRuleTemplate(ctx context.Context, in types.CreateProcessingRuleTemplate) (types.Created, error)
- func (c *Client) CreateProcessingRuleV1(ctx context.Context, in legacy.CreateProcessingRule) (legacy.CreatedProcessingRule, error)
- func (c *Client) CreateProject(ctx context.Context, payload types.CreateProject) (types.CreatedProject, error)
- func (c *Client) CreateResourceProfile(ctx context.Context, instanceID string, payload types.CreateResourceProfile) (types.Created, error)
- func (c *Client) CreateSAMLMapping(ctx context.Context, in types.CreateSAMLMapping) (types.Created, error)
- func (c *Client) CreateToken(ctx context.Context, projectID string, payload types.CreateToken) (types.Token, error)
- func (c *Client) CreateTraceRecord(ctx context.Context, pipelineID string, in types.CreateTraceRecord) (types.CreatedTraceRecord, error)
- func (c *Client) CreateTraceSession(ctx context.Context, pipelineID string, in types.CreateTraceSession) (types.Created, error)
- func (c *Client) DeleteAgent(ctx context.Context, agentID string) error
- func (c *Client) DeleteAgents(ctx context.Context, projectID string, agentIDs ...string) error
- func (c *Client) DeleteClusterObject(ctx context.Context, checkID string) error
- func (c *Client) DeleteClusterObjectRegex(ctx context.Context, regexID string) error
- func (c *Client) DeleteConfigSection(ctx context.Context, configSectionID string) error
- func (c *Client) DeleteCoreInstance(ctx context.Context, instanceID string) error
- func (c *Client) DeleteCoreInstanceCheck(ctx context.Context, checkID string) error
- func (c *Client) DeleteCoreInstanceFile(ctx context.Context, coreInstanceFileID string) (types.Deleted, error)
- func (c *Client) DeleteCoreInstanceSecret(ctx context.Context, coreInstanceSecretID string) (types.Deleted, error)
- func (c *Client) DeleteCoreInstances(ctx context.Context, projectID string, instanceIDs ...string) error
- func (c *Client) DeleteEnvironment(ctx context.Context, environmentID string) error
- func (c *Client) DeleteFleet(ctx context.Context, fleetID string) (types.Deleted, error)
- func (c *Client) DeleteFleetFile(ctx context.Context, fileID string) error
- func (c *Client) DeleteIngestCheck(ctx context.Context, checkID string) error
- func (c *Client) DeleteMember(ctx context.Context, memberID string) (types.Deleted, error)
- func (c *Client) DeletePipeline(ctx context.Context, pipelineID string) error
- func (c *Client) DeletePipelineCheck(ctx context.Context, checkID string) error
- func (c *Client) DeletePipelineClusterObjects(ctx context.Context, pipelineID string, clusterObjectIDs ...string) error
- func (c *Client) DeletePipelineFile(ctx context.Context, fileID string) error
- func (c *Client) DeletePipelineLog(ctx context.Context, id string) (types.Deleted, error)
- func (c *Client) DeletePipelinePort(ctx context.Context, portID string) error
- func (c *Client) DeletePipelineSecret(ctx context.Context, secretID string) error
- func (c *Client) DeletePipelines(ctx context.Context, instanceID string, pipelineIDs ...string) error
- func (c *Client) DeleteProcessingRule(ctx context.Context, processingRuleID string) error
- func (c *Client) DeleteProcessingRuleTemplate(ctx context.Context, id string) (types.Deleted, error)
- func (c *Client) DeleteProcessingRuleV1(ctx context.Context, processingRuleID string) error
- func (c *Client) DeleteProject(ctx context.Context, projectID string) (types.Deleted, error)
- func (c *Client) DeleteResourceProfile(ctx context.Context, resourceProfileID string) error
- func (c *Client) DeleteSAMLMapping(ctx context.Context, id string) (types.Deleted, error)
- func (c *Client) DeleteToken(ctx context.Context, tokenID string) error
- func (c *Client) DismissAgentError(ctx context.Context, in types.DismissAgentError) (types.DismissedAgentError, error)
- func (c *Client) Environments(ctx context.Context, projectID string, params types.EnvironmentsParams) (types.Environments, error)
- func (c *Client) Fleet(ctx context.Context, in types.FleetParams) (types.Fleet, error)
- func (c *Client) FleetConfig(ctx context.Context, fleetID string, params types.FleetConfigParams) (*fluentbitconfig.Config, error)
- func (c *Client) FleetFile(ctx context.Context, fileID string) (types.FleetFile, error)
- func (c *Client) FleetFiles(ctx context.Context, fleetID string, params types.FleetFilesParams) (types.FleetFiles, error)
- func (c *Client) FleetStatus(ctx context.Context, params types.FleetStatusParams) (types.FleetsStatus, error)
- func (c *Client) Fleets(ctx context.Context, params types.FleetsParams) (types.Fleets, error)
- func (c *Client) FleetsStatus(ctx context.Context, params types.FleetsStatusParams) (types.FleetsStatus, error)
- func (c *Client) Health(ctx context.Context) (types.Health, error)
- func (c *Client) IngestCheck(ctx context.Context, checkID string) (types.IngestCheck, error)
- func (c *Client) IngestChecks(ctx context.Context, coreInstanceID string, params types.IngestChecksParams) (types.IngestChecks, error)
- func (c *Client) Members(ctx context.Context, projectID string, params types.MembersParams) (types.Memberships, error)
- func (c *Client) Pipeline(ctx context.Context, pipelineID string, params types.PipelineParams) (types.Pipeline, error)
- func (c *Client) PipelineCheck(ctx context.Context, checkID string) (types.PipelineCheck, error)
- func (c *Client) PipelineChecks(ctx context.Context, pipelineID string, params types.PipelineChecksParams) (types.PipelineChecks, error)
- func (c *Client) PipelineClusterObjects(ctx context.Context, pipelineID string, ...) (types.ClusterObjects, error)
- func (c *Client) PipelineConfigHistory(ctx context.Context, pipelineID string, ...) (types.PipelineConfigHistory, error)
- func (c *Client) PipelineFile(ctx context.Context, fileID string) (types.PipelineFile, error)
- func (c *Client) PipelineFiles(ctx context.Context, pipelineID string, params types.PipelineFilesParams) (types.PipelineFiles, error)
- func (c *Client) PipelineLog(ctx context.Context, id string) (types.PipelineLog, error)
- func (c *Client) PipelineLogs(ctx context.Context, in types.ListPipelineLogs) (types.PipelineLogs, error)
- func (c *Client) PipelineMetadata(ctx context.Context, pipelineID string, keys ...string) (types.PipelineMetadata, error)
- func (c *Client) PipelineMetrics(ctx context.Context, pipelineID string) (types.MetricsSummary, error)
- func (c *Client) PipelineMetricsByPlugin(ctx context.Context, pipelineID string) (types.MetricsSummaryPlugin, error)
- func (c *Client) PipelineMetricsOverTime(ctx context.Context, pipelineID string, params types.MetricsParams) (types.MetricsOverTime, error)
- func (c *Client) PipelineMetricsOverTimeByPlugin(ctx context.Context, pipelineID string, params types.MetricsParams) (types.MetricsOverTimeByPlugin, error)
- func (c *Client) PipelinePort(ctx context.Context, portID string) (types.PipelinePort, error)
- func (c *Client) PipelinePorts(ctx context.Context, pipelineID string, params types.PipelinePortsParams) (types.PipelinePorts, error)
- func (c *Client) PipelineSecret(ctx context.Context, secretID string) (types.PipelineSecret, error)
- func (c *Client) PipelineSecrets(ctx context.Context, pipelineID string, params types.PipelineSecretsParams) (types.PipelineSecrets, error)
- func (c *Client) PipelineStatusHistory(ctx context.Context, pipelineID string, ...) (types.PipelineStatusHistory, error)
- func (c *Client) Pipelines(ctx context.Context, in types.PipelinesParams) (types.Pipelines, error)
- func (c *Client) PreviewProcessingRule(ctx context.Context, in types.PreviewProcessingRule) ([]types.FluentBitLog, error)
- func (c *Client) PreviewProcessingRuleV1(ctx context.Context, in legacy.PreviewProcessingRule) ([]types.FluentBitLog, error)
- func (c *Client) ProcessingRule(ctx context.Context, processingRuleID string) (types.ProcessingRule, error)
- func (c *Client) ProcessingRuleTemplate(ctx context.Context, id string) (types.ProcessingRuleTemplate, error)
- func (c *Client) ProcessingRuleTemplates(ctx context.Context, in types.ListProcessingRuleTemplates) (types.ProcessingRuleTemplates, error)
- func (c *Client) ProcessingRuleV1(ctx context.Context, processingRuleID string) (legacy.ProcessingRule, error)
- func (c *Client) ProcessingRules(ctx context.Context, params types.ProcessingRulesParams) (types.ProcessingRules, error)
- func (c *Client) ProcessingRulesV1(ctx context.Context, params legacy.ProcessingRulesParams) (legacy.ProcessingRules, error)
- func (c *Client) Project(ctx context.Context, projectID string) (types.Project, error)
- func (c *Client) Projects(ctx context.Context, params types.ProjectsParams) (types.Projects, error)
- func (c *Client) PushAWSMarketplaceSubscriptionNotification(ctx context.Context, in types.AWSMarketplaceSubscriptionNotification) error
- func (c *Client) RegisterAgent(ctx context.Context, payload types.RegisterAgent) (types.RegisteredAgent, error)
- func (c *Client) ResourceProfile(ctx context.Context, resourceProfileID string) (types.ResourceProfile, error)
- func (c *Client) ResourceProfiles(ctx context.Context, instanceID string, params types.ResourceProfilesParams) (types.ResourceProfiles, error)
- func (c *Client) SAMLMappings(ctx context.Context, in types.ListSAMLMappings) (types.SAMLMappings, error)
- func (c *Client) Search(ctx context.Context, in types.SearchQuery) ([]types.SearchResult, error)
- func (c *Client) SendVerificationEmail(ctx context.Context) error
- func (c *Client) SetAgentToken(s string)
- func (c *Client) SetCoreInstanceToken(s string)
- func (c *Client) SetProjectToken(s string)
- func (c *Client) SetUserAgent(s string)
- func (c *Client) TerminateActiveTraceSession(ctx context.Context, pipelineID string) (types.TerminatedTraceSession, error)
- func (c *Client) Token(ctx context.Context, tokenID string) (types.Token, error)
- func (c *Client) Tokens(ctx context.Context, projectID string, params types.TokensParams) (types.Tokens, error)
- func (c *Client) TraceRecords(ctx context.Context, sessionID string, params types.TraceRecordsParams) (types.TraceRecords, error)
- func (c *Client) TraceSession(ctx context.Context, sessionID string) (types.TraceSession, error)
- func (c *Client) TraceSessions(ctx context.Context, pipelineID string, params types.TraceSessionsParams) (types.TraceSessions, error)
- func (c *Client) UpdateAgent(ctx context.Context, agentID string, payload types.UpdateAgent) error
- func (c *Client) UpdateClusterObject(ctx context.Context, checkID string, opts types.UpdateClusterObject) error
- func (c *Client) UpdateClusterObjectRegex(ctx context.Context, in types.UpdateClusterObjectRegex) (types.Updated, error)
- func (c *Client) UpdateConfigSection(ctx context.Context, configSectionID string, in types.UpdateConfigSection) (types.Updated, error)
- func (c *Client) UpdateConfigSectionSet(ctx context.Context, pipelineID string, configSectionIDs ...string) error
- func (c *Client) UpdateCoreInstance(ctx context.Context, instanceID string, payload types.UpdateCoreInstance) error
- func (c *Client) UpdateCoreInstanceCheck(ctx context.Context, checkID string, opts types.UpdateCoreInstanceCheck) error
- func (c *Client) UpdateCoreInstanceFile(ctx context.Context, in types.UpdateCoreInstanceFile) (types.Updated, error)
- func (c *Client) UpdateCoreInstanceSecret(ctx context.Context, in types.UpdateCoreInstanceSecret) (types.Updated, error)
- func (c *Client) UpdateEnvironment(ctx context.Context, environmentID string, payload types.UpdateEnvironment) error
- func (c *Client) UpdateFleet(ctx context.Context, in types.UpdateFleet) (types.Updated, error)
- func (c *Client) UpdateFleetFile(ctx context.Context, fileID string, opts types.UpdateFleetFile) error
- func (c *Client) UpdateIngestCheck(ctx context.Context, checkID string, opts types.UpdateIngestCheck) error
- func (c *Client) UpdateMember(ctx context.Context, in types.UpdateMember) error
- func (c *Client) UpdatePipeline(ctx context.Context, pipelineID string, opts types.UpdatePipeline) (types.UpdatedPipeline, error)
- func (c *Client) UpdatePipelineCheck(ctx context.Context, checkID string, opts types.UpdatePipelineCheck) error
- func (c *Client) UpdatePipelineClusterObjects(ctx context.Context, pipelineID string, ...) error
- func (c *Client) UpdatePipelineFile(ctx context.Context, fileID string, opts types.UpdatePipelineFile) error
- func (c *Client) UpdatePipelineLog(ctx context.Context, in types.UpdatePipelineLog) (types.Updated, error)
- func (c *Client) UpdatePipelineMetadata(ctx context.Context, pipelineID string, opts types.UpdatePipelineMetadata) error
- func (c *Client) UpdatePipelinePort(ctx context.Context, portID string, opts types.UpdatePipelinePort) error
- func (c *Client) UpdatePipelineSecret(ctx context.Context, secretID string, opts types.UpdatePipelineSecret) error
- func (c *Client) UpdateProcessingRule(ctx context.Context, in types.UpdateProcessingRule) (types.Updated, error)
- func (c *Client) UpdateProcessingRuleTemplate(ctx context.Context, in types.UpdateProcessingRuleTemplate) (types.Updated, error)
- func (c *Client) UpdateProcessingRuleV1(ctx context.Context, in legacy.UpdateProcessingRule) (types.Updated, error)
- func (c *Client) UpdateProject(ctx context.Context, projectID string, opts types.UpdateProject) error
- func (c *Client) UpdateResourceProfile(ctx context.Context, resourceProfileID string, ...) error
- func (c *Client) UpdateSAMLMapping(ctx context.Context, in types.UpdateSAMLMapping) (types.Updated, error)
- func (c *Client) UpdateToken(ctx context.Context, in types.UpdateToken) error
- func (c *Client) UpdateTraceSession(ctx context.Context, sessionID string, in types.UpdateTraceSession) (types.Updated, error)
- func (c *Client) ValidateFluentbitConfig(ctx context.Context, in types.ValidateFluentbitConfig) error
Constants ¶
const ( // DefaultBaseURL of the API. DefaultBaseURL = "https://cloud-api.calyptia.com" CalyptiaEnvAPIURL = "CALYPTIA_API_URL" //nolint:gosec // no credential leaks just a variable. CalyptiaEnvAPIToken = "CALYPTIA_API_TOKEN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL string // Tip: Use oauth2.NewClient(context.Context, *oauth2.TokenSource) Client *http.Client // contains filtered or unexported fields }
Client is the client over the REST HTTP API of Calyptia Cloud.
func NewFromEnv ¶ added in v1.4.7
func NewFromEnv() *Client
NewFromEnv creates a new client using default environment variables.
func (*Client) AWSCustomerRedirect ¶ added in v1.2.0
func (*Client) AcceptInvitation ¶
AcceptInvitation to a project. The project to which you join is parsed from the token.
func (*Client) ActiveTraceSession ¶ added in v0.6.1
func (c *Client) ActiveTraceSession(ctx context.Context, pipelineID string) (types.TraceSession, error)
ActiveTraceSession from a pipeline if any.
func (*Client) AddAgentMetrics ¶ added in v1.6.1
func (*Client) AgentConfigHistory ¶
func (c *Client) AgentConfigHistory(ctx context.Context, agentID string, params types.AgentConfigHistoryParams) (types.AgentConfigHistory, error)
AgentConfigHistory in descending order. Every time an agent config is updated, a new history entry with the change is created.
func (*Client) AgentErrors ¶ added in v1.2.0
func (c *Client) AgentErrors(ctx context.Context, in types.ListAgentErrors) (types.AgentErrors, error)
func (*Client) AgentMetrics ¶
AgentMetrics contains an overview of the Agent metrics. It includes metrics link the amount of records, bytes, and errors.
func (*Client) AgentMetricsByPlugin ¶ added in v0.17.0
func (c *Client) AgentMetricsByPlugin(ctx context.Context, agentID string) (types.MetricsSummaryPlugin, error)
AgentMetricsByPlugin contains an overview of the Agent metrics. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) AgentMetricsOverTime ¶ added in v1.8.0
func (c *Client) AgentMetricsOverTime(ctx context.Context, agentID string, params types.MetricsParams) (types.MetricsOverTime, error)
AgentMetricsOverTime contains Agent metrics overtime. It includes metrics link the amount of records, bytes, and errors.
func (*Client) AgentMetricsOverTimeByPlugin ¶ added in v0.17.0
func (c *Client) AgentMetricsOverTimeByPlugin(ctx context.Context, agentID string, params types.MetricsParams) (types.MetricsOverTimeByPlugin, error)
AgentMetricsOverTimeByPlugin contains an overview of the Agent metrics. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) Agents ¶
func (c *Client) Agents(ctx context.Context, projectID string, params types.AgentsParams) (types.Agents, error)
Agents from the given project in descending order.
func (*Client) AllCoreInstanceFiles ¶ added in v1.5.2
func (c *Client) AllCoreInstanceFiles(ctx context.Context, coreInstanceID string) ([]types.CoreInstanceFile, error)
AllCoreInstanceFiles returns all core instance files for a given core instance by making multiple requests to the paginated API until all files have been retrieved.
func (*Client) AllCoreInstanceSecrets ¶ added in v1.5.2
func (c *Client) AllCoreInstanceSecrets(ctx context.Context, coreInstanceID string) ([]types.CoreInstanceSecret, error)
AllCoreInstanceSecrets returns all core instance secrets for a given core instance by making multiple requests to the paginated API until all secrets have been retrieved.
func (*Client) ClusterObject ¶ added in v0.17.1
ClusterObject by ID.
func (*Client) ClusterObjectRegex ¶ added in v1.4.7
func (*Client) ClusterObjectRegexes ¶ added in v1.4.7
func (c *Client) ClusterObjectRegexes(ctx context.Context, in types.ListClusterObjectRegexes) (types.ClusterObjectRegexes, error)
func (*Client) ClusterObjects ¶ added in v0.17.1
func (c *Client) ClusterObjects(ctx context.Context, coreInstanceID string, params types.ClusterObjectParams) (types.ClusterObjects, error)
ClusterObjects in descending order.
func (*Client) ConfigSection ¶ added in v0.9.1
func (*Client) ConfigSections ¶ added in v0.9.1
func (c *Client) ConfigSections(ctx context.Context, projectID string, params types.ConfigSectionsParams) (types.ConfigSections, error)
func (*Client) CoreInstance ¶ added in v0.19.0
CoreInstance by ID.
func (*Client) CoreInstanceCheck ¶ added in v0.9.1
func (c *Client) CoreInstanceCheck(ctx context.Context, checkID string) (types.CoreInstanceCheck, error)
CoreInstanceCheck by ID.
func (*Client) CoreInstanceChecks ¶ added in v0.9.1
func (c *Client) CoreInstanceChecks(ctx context.Context, coreInstanceID string, params types.CoreInstanceChecksParams) (types.CoreInstanceChecks, error)
CoreInstanceChecks in descending order.
func (*Client) CoreInstanceFiles ¶ added in v1.5.2
func (c *Client) CoreInstanceFiles(ctx context.Context, in types.ListCoreInstanceFiles) (types.CoreInstanceFiles, error)
func (*Client) CoreInstanceMetrics ¶ added in v0.15.0
func (c *Client) CoreInstanceMetrics(ctx context.Context, coreInstanceID string) (types.MetricsSummary, error)
CoreInstanceMetrics contains an overview of the Core Instance metrics. It includes metrics link the amount of records, bytes, and errors.
func (*Client) CoreInstanceMetricsByPlugin ¶ added in v0.15.0
func (c *Client) CoreInstanceMetricsByPlugin(ctx context.Context, coreInstanceID string) (types.MetricsSummaryPlugin, error)
CoreInstanceMetricsByPlugin contains an overview of the Core Instance metrics. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) CoreInstanceMetricsOverTime ¶ added in v1.8.0
func (c *Client) CoreInstanceMetricsOverTime(ctx context.Context, coreInstanceID string, params types.MetricsParams) (types.MetricsOverTime, error)
CoreInstanceMetricsOverTime contains Core Instance metrics overtime. It includes metrics link the amount of records, bytes, and errors.
func (*Client) CoreInstanceMetricsOverTimeByPlugin ¶ added in v0.15.0
func (c *Client) CoreInstanceMetricsOverTimeByPlugin(ctx context.Context, coreInstanceID string, params types.MetricsParams) (types.MetricsOverTimeByPlugin, error)
CoreInstanceMetricsOverTimeByPlugin contains an overview of the Core Instance metrics. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) CoreInstancePing ¶ added in v0.19.0
func (c *Client) CoreInstancePing(ctx context.Context, instanceID string) (types.CoreInstancePingResponse, error)
CoreInstancePing by its ID.
func (*Client) CoreInstanceSecrets ¶ added in v1.5.2
func (c *Client) CoreInstanceSecrets(ctx context.Context, in types.ListCoreInstanceSecrets) (types.CoreInstanceSecrets, error)
func (*Client) CoreInstances ¶ added in v0.19.0
func (c *Client) CoreInstances(ctx context.Context, projectID string, params types.CoreInstancesParams) (types.CoreInstances, error)
CoreInstances from a project in descending order.
func (*Client) CreateAWSContractFromToken ¶ added in v1.2.0
func (*Client) CreateAgentError ¶ added in v1.2.0
func (*Client) CreateClusterObject ¶ added in v0.17.1
func (c *Client) CreateClusterObject(ctx context.Context, coreInstanceID string, payload types.CreateClusterObject) (types.Created, error)
CreateClusterObject within a core_instance.
func (*Client) CreateClusterObjectRegex ¶ added in v1.4.7
func (*Client) CreateConfigSection ¶ added in v0.9.1
func (*Client) CreateCoreInstance ¶ added in v0.19.0
func (c *Client) CreateCoreInstance(ctx context.Context, payload types.CreateCoreInstance) (types.CreatedCoreInstance, error)
CreateCoreInstance within a project. The project in which the core instance is created is parser from the authorization token. Users are not allowed to create core instances.
func (*Client) CreateCoreInstanceCheck ¶ added in v0.9.1
func (c *Client) CreateCoreInstanceCheck(ctx context.Context, coreInstanceID string, payload types.CreateCoreInstanceCheck) (types.Created, error)
CreateCoreInstanceCheck within a core_instance.
func (*Client) CreateCoreInstanceFile ¶ added in v1.5.2
func (*Client) CreateCoreInstanceSecret ¶ added in v1.5.2
func (*Client) CreateEnvironment ¶ added in v0.3.1
func (c *Client) CreateEnvironment(ctx context.Context, projectID string, payload types.CreateEnvironment) (types.CreatedEnvironment, error)
CreateEnvironment within a project.
func (*Client) CreateFleet ¶ added in v1.1.0
func (*Client) CreateFleetFile ¶ added in v1.5.6
func (c *Client) CreateFleetFile(ctx context.Context, fleetID string, payload types.CreateFleetFile) (types.Created, error)
CreateFleetFile within a fleet. The given name is unique within the fleet. These files can be referenced by their name within a fluentbit configuration file like so `{{files.thename}}`. Use them to share common stuff like parsers.
func (*Client) CreateIngestCheck ¶ added in v0.15.0
func (c *Client) CreateIngestCheck(ctx context.Context, coreInstanceID string, payload types.CreateIngestCheck) (types.Created, error)
CreateIngestCheck within a core_instance.
func (*Client) CreateInvitation ¶
func (c *Client) CreateInvitation(ctx context.Context, projectID string, payload types.CreateInvitation) error
CreateInvitation to a project. This will send an invitation email with a link to join to the email address provided.
func (*Client) CreateMetrics ¶ added in v1.8.0
func (c *Client) CreateMetrics(ctx context.Context, in types.CreateMetrics) (types.CreatedMetrics, error)
CreateMetrics ingests agent metrics via the metrics API.
func (*Client) CreatePipeline ¶
func (c *Client) CreatePipeline(ctx context.Context, instanceID string, payload types.CreatePipeline) (types.CreatedPipeline, error)
CreatePipeline within a core instance. The pipeline name must be unique within the core instance. The resource profile must exist already. If you don't provide one, it will default to "best-effort-low-resource". Use them to easily deploy configured agents to the core instance.
func (*Client) CreatePipelineCheck ¶ added in v0.9.1
func (c *Client) CreatePipelineCheck(ctx context.Context, pipelineID string, payload types.CreatePipelineCheck) (types.Created, error)
CreatePipelineCheck within a pipeline.
func (*Client) CreatePipelineFile ¶
func (c *Client) CreatePipelineFile(ctx context.Context, pipelineID string, payload types.CreatePipelineFile) (types.Created, error)
CreatePipelineFile within a pipeline. The given name is unique within the pipeline. These files can be referenced by their name within a fluentbit configuration file like so `{{files.thename}}`. Use them to share common stuff like parsers.
func (*Client) CreatePipelineLog ¶ added in v1.6.2
func (*Client) CreatePipelinePort ¶
func (c *Client) CreatePipelinePort(ctx context.Context, pipelineID string, payload types.CreatePipelinePort) (types.CreatedPipelinePort, error)
CreatePipelinePort within a pipeline. Ports can automatically be parsed from a config file, but this action allows you to programatically add more.
func (*Client) CreatePipelineSecret ¶
func (c *Client) CreatePipelineSecret(ctx context.Context, pipelineID string, payload types.CreatePipelineSecret) (types.Created, error)
CreatePipelineSecret within a pipeline. The given name is unique within the pipeline. These secrets can be referenced by their name within a fluentbit configuration file like so `{{secrets.thename}}`. Use them to hide sensible values from your config file.
func (*Client) CreateProcessingRule ¶ added in v0.9.1
func (c *Client) CreateProcessingRule(ctx context.Context, in types.CreateProcessingRule) (types.CreatedProcessingRule, error)
func (*Client) CreateProcessingRuleTemplate ¶ added in v1.4.7
func (*Client) CreateProcessingRuleV1 ¶ added in v1.9.0
func (c *Client) CreateProcessingRuleV1(ctx context.Context, in legacy.CreateProcessingRule) (legacy.CreatedProcessingRule, error)
func (*Client) CreateProject ¶
func (c *Client) CreateProject(ctx context.Context, payload types.CreateProject) (types.CreatedProject, error)
CreateProject creates a new project. A project is the base unit of work at Calyptia Cloud. You can register agents here, create core instances in which you can deploy an entire set of pipelines, and monitor them. You can even invite other people to the project and have a team.
func (*Client) CreateResourceProfile ¶
func (c *Client) CreateResourceProfile(ctx context.Context, instanceID string, payload types.CreateResourceProfile) (types.Created, error)
CreateResourceProfile within a core instance. A resource profile is a specification of a resource used during the deployment of a pipeline. By default, when you setup a core instance, Calyptia Cloud will generate 3 resource profiles for you: - high-performance-guaranteed-delivery. - high-performance-optimal-throughput. - best-effort-low-resource.
func (*Client) CreateSAMLMapping ¶ added in v1.10.0
func (*Client) CreateToken ¶
func (c *Client) CreateToken(ctx context.Context, projectID string, payload types.CreateToken) (types.Token, error)
CreateToken within a project. These tokens are to authorize other applications to access the project. For example: - an agent might use it to register itself to the project. - you might create a new core instance in the project using the Calyptia CLI. - you might use it within the Calyptia CLI to grant access to your project.
func (*Client) CreateTraceRecord ¶ added in v0.6.1
func (c *Client) CreateTraceRecord(ctx context.Context, pipelineID string, in types.CreateTraceRecord) (types.CreatedTraceRecord, error)
CreateTraceRecord on the current active trace session on the pipeline. This endpoint is meant to be used by fluent-bit's tracing sidecar.
func (*Client) CreateTraceSession ¶ added in v0.6.1
func (c *Client) CreateTraceSession(ctx context.Context, pipelineID string, in types.CreateTraceSession) (types.Created, error)
CreateTraceSession within a pipeline. A trace session can receive records from fluent-bit's tracing sidecar while this is enabled (see its lifespan). Only one trace session can be active at a time you can either terminate it and create a new one, or update the existing one and extend its lifespan.
func (*Client) DeleteAgent ¶
DeleteAgent by its ID.
func (*Client) DeleteAgents ¶ added in v0.9.0
DeleteAgents from a project passing a list of the IDs to be deleted.
func (*Client) DeleteClusterObject ¶ added in v0.17.1
DeleteClusterObject by its ID.
func (*Client) DeleteClusterObjectRegex ¶ added in v1.4.7
func (*Client) DeleteConfigSection ¶ added in v0.9.1
func (*Client) DeleteCoreInstance ¶ added in v0.19.0
DeleteCoreInstance by its ID.
func (*Client) DeleteCoreInstanceCheck ¶ added in v0.9.1
DeleteCoreInstanceCheck by its ID.
func (*Client) DeleteCoreInstanceFile ¶ added in v1.5.2
func (*Client) DeleteCoreInstanceSecret ¶ added in v1.5.2
func (*Client) DeleteCoreInstances ¶ added in v0.19.0
func (c *Client) DeleteCoreInstances(ctx context.Context, projectID string, instanceIDs ...string) error
DeleteCoreInstances from a project passing a list of the IDs to be deleted.
func (*Client) DeleteEnvironment ¶ added in v0.3.1
DeleteEnvironment by its ID.
func (*Client) DeleteFleet ¶ added in v1.1.0
func (*Client) DeleteFleetFile ¶ added in v1.5.6
DeleteFleetFile by its ID. The file cannot be deleted if some fleet config is still referencing it; you must delete the fleet first if you want to delete the file.
func (*Client) DeleteIngestCheck ¶ added in v0.15.0
DeleteIngestCheck by its ID.
func (*Client) DeleteMember ¶ added in v1.6.7
func (*Client) DeletePipeline ¶
DeletePipeline by its ID.
func (*Client) DeletePipelineCheck ¶ added in v0.9.1
DeletePipelineCheck by its ID.
func (*Client) DeletePipelineClusterObjects ¶ added in v0.19.0
func (c *Client) DeletePipelineClusterObjects(ctx context.Context, pipelineID string, clusterObjectIDs ...string) error
DeletePipelineClusterObjects un-relate a list of cluster objects from a pipeline.
func (*Client) DeletePipelineFile ¶
DeletePipelineFile by its ID. The file cannot be deleted if some pipeline config is still referencing it; you must delete the pipeline first if you want to delete the file.
func (*Client) DeletePipelineLog ¶ added in v1.6.2
func (*Client) DeletePipelinePort ¶
DeletePipelinePort by its ID.
func (*Client) DeletePipelineSecret ¶
DeletePipelineSecret by its ID. The secret cannot be deleted if some pipeline config is still referencing it; you must delete the pipeline first if you want to delete the secret.
func (*Client) DeletePipelines ¶ added in v0.9.0
func (c *Client) DeletePipelines(ctx context.Context, instanceID string, pipelineIDs ...string) error
DeletePipelines from a core instance passing a list of the IDs to be deleted.
func (*Client) DeleteProcessingRule ¶ added in v0.15.0
func (*Client) DeleteProcessingRuleTemplate ¶ added in v1.4.7
func (*Client) DeleteProcessingRuleV1 ¶ added in v1.9.0
func (*Client) DeleteProject ¶ added in v1.7.0
DeleteProject by its ID.
func (*Client) DeleteResourceProfile ¶
DeleteResourceProfile by its ID. The profile cannot be deleted if some pipeline is still referencing it; you must delete the pipeline first if you want to delete the profile.
func (*Client) DeleteSAMLMapping ¶ added in v1.10.0
func (*Client) DeleteToken ¶
DeleteToken by its ID. Once deleted, any application that might has been using it, will stop working.
func (*Client) DismissAgentError ¶ added in v1.2.0
func (c *Client) DismissAgentError(ctx context.Context, in types.DismissAgentError) (types.DismissedAgentError, error)
func (*Client) Environments ¶ added in v0.3.1
func (c *Client) Environments(ctx context.Context, projectID string, params types.EnvironmentsParams) (types.Environments, error)
Environments from the given project in descending order.
func (*Client) FleetConfig ¶ added in v1.2.0
func (c *Client) FleetConfig(ctx context.Context, fleetID string, params types.FleetConfigParams) (*fluentbitconfig.Config, error)
func (*Client) FleetFiles ¶ added in v1.5.6
func (c *Client) FleetFiles(ctx context.Context, fleetID string, params types.FleetFilesParams) (types.FleetFiles, error)
FleetFiles in descending order.
func (*Client) FleetStatus ¶ added in v1.6.1
func (c *Client) FleetStatus(ctx context.Context, params types.FleetStatusParams) (types.FleetsStatus, error)
func (*Client) FleetsStatus ¶ added in v1.6.1
func (c *Client) FleetsStatus(ctx context.Context, params types.FleetsStatusParams) (types.FleetsStatus, error)
func (*Client) IngestCheck ¶ added in v0.15.0
IngestCheck by ID.
func (*Client) IngestChecks ¶ added in v0.15.0
func (c *Client) IngestChecks(ctx context.Context, coreInstanceID string, params types.IngestChecksParams) (types.IngestChecks, error)
IngestChecks in descending order.
func (*Client) Members ¶
func (c *Client) Members(ctx context.Context, projectID string, params types.MembersParams) (types.Memberships, error)
Members from a project in descending order.
func (*Client) Pipeline ¶
func (c *Client) Pipeline(ctx context.Context, pipelineID string, params types.PipelineParams) (types.Pipeline, error)
Pipeline by ID.
func (*Client) PipelineCheck ¶ added in v0.9.1
PipelineCheck by ID.
func (*Client) PipelineChecks ¶ added in v0.9.1
func (c *Client) PipelineChecks(ctx context.Context, pipelineID string, params types.PipelineChecksParams) (types.PipelineChecks, error)
PipelineChecks in descending order.
func (*Client) PipelineClusterObjects ¶ added in v0.19.0
func (c *Client) PipelineClusterObjects(ctx context.Context, pipelineID string, params types.PipelineClusterObjectsParams) (types.ClusterObjects, error)
PipelineClusterObjects returns the entire set of cluster objects associated to a pipeline.
func (*Client) PipelineConfigHistory ¶
func (c *Client) PipelineConfigHistory(ctx context.Context, pipelineID string, params types.PipelineConfigHistoryParams) (types.PipelineConfigHistory, error)
PipelineConfigHistory in descending order. Every time a pipeline config is updated, a new history entry with the change is created.
func (*Client) PipelineFile ¶
PipelineFile by ID.
func (*Client) PipelineFiles ¶
func (c *Client) PipelineFiles(ctx context.Context, pipelineID string, params types.PipelineFilesParams) (types.PipelineFiles, error)
PipelineFiles in descending order.
func (*Client) PipelineLog ¶ added in v1.6.7
func (*Client) PipelineLogs ¶ added in v1.6.2
func (c *Client) PipelineLogs(ctx context.Context, in types.ListPipelineLogs) (types.PipelineLogs, error)
func (*Client) PipelineMetadata ¶ added in v1.4.7
func (c *Client) PipelineMetadata(ctx context.Context, pipelineID string, keys ...string) (types.PipelineMetadata, error)
PipelineMetadata retrieves the metadata associated with a given pipeline.
Parameters:
- `ctx`: The context for executing the HTTP request.
- `pipelineID`: The unique identifier for the desired pipeline.
- `keys`: An optional list of specific metadata keys to retrieve. If no keys are provided, all metadata for the pipeline will be returned.
Returns: - A `types.PipelineMetadata` containing the requested metadata. - An error if the request fails or if the pipeline with the given ID is not found.
The function constructs a request URL by appending the provided pipelineID and any specified keys as query parameters. It then performs a GET request to fetch the metadata.
func (*Client) PipelineMetrics ¶
func (c *Client) PipelineMetrics(ctx context.Context, pipelineID string) (types.MetricsSummary, error)
PipelineMetrics contains an overview of the Pipeline metrics. It includes metrics link the amount of records, bytes, and errors.
func (*Client) PipelineMetricsByPlugin ¶ added in v0.17.0
func (c *Client) PipelineMetricsByPlugin(ctx context.Context, pipelineID string) (types.MetricsSummaryPlugin, error)
PipelineMetricsByPlugin contains an overview of the Pipeline metrics. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) PipelineMetricsOverTime ¶ added in v1.8.0
func (c *Client) PipelineMetricsOverTime(ctx context.Context, pipelineID string, params types.MetricsParams) (types.MetricsOverTime, error)
PipelineMetricsOverTime contains Pipeline metrics overtime. It includes metrics link the amount of records, bytes, and errors.
func (*Client) PipelineMetricsOverTimeByPlugin ¶ added in v0.17.0
func (c *Client) PipelineMetricsOverTimeByPlugin(ctx context.Context, pipelineID string, params types.MetricsParams) (types.MetricsOverTimeByPlugin, error)
PipelineMetricsOverTimeByPlugin contains an overview of the Pipeline metrics. It includes metrics link the amount of records, bytes, and errors per plugin.
func (*Client) PipelinePort ¶
PipelinePort by ID.
func (*Client) PipelinePorts ¶
func (c *Client) PipelinePorts(ctx context.Context, pipelineID string, params types.PipelinePortsParams) (types.PipelinePorts, error)
PipelinePorts in descending order.
func (*Client) PipelineSecret ¶
PipelineSecret by ID.
func (*Client) PipelineSecrets ¶
func (c *Client) PipelineSecrets(ctx context.Context, pipelineID string, params types.PipelineSecretsParams) (types.PipelineSecrets, error)
PipelineSecrets in descending order.
func (*Client) PipelineStatusHistory ¶
func (c *Client) PipelineStatusHistory(ctx context.Context, pipelineID string, params types.PipelineStatusHistoryParams) (types.PipelineStatusHistory, error)
PipelineStatusHistory in descending order. Every time a pipeline status is changed, a new history entry with the change is created.
func (*Client) PreviewProcessingRule ¶ added in v0.9.1
func (c *Client) PreviewProcessingRule(ctx context.Context, in types.PreviewProcessingRule) ([]types.FluentBitLog, error)
func (*Client) PreviewProcessingRuleV1 ¶ added in v1.9.0
func (c *Client) PreviewProcessingRuleV1(ctx context.Context, in legacy.PreviewProcessingRule) ([]types.FluentBitLog, error)
func (*Client) ProcessingRule ¶ added in v0.9.1
func (*Client) ProcessingRuleTemplate ¶ added in v1.9.0
func (*Client) ProcessingRuleTemplates ¶ added in v1.4.7
func (c *Client) ProcessingRuleTemplates(ctx context.Context, in types.ListProcessingRuleTemplates) (types.ProcessingRuleTemplates, error)
func (*Client) ProcessingRuleV1 ¶ added in v1.9.0
func (*Client) ProcessingRules ¶ added in v0.9.1
func (c *Client) ProcessingRules(ctx context.Context, params types.ProcessingRulesParams) (types.ProcessingRules, error)
func (*Client) ProcessingRulesV1 ¶ added in v1.9.0
func (c *Client) ProcessingRulesV1(ctx context.Context, params legacy.ProcessingRulesParams) (legacy.ProcessingRules, error)
func (*Client) PushAWSMarketplaceSubscriptionNotification ¶ added in v1.4.7
func (*Client) RegisterAgent ¶
func (c *Client) RegisterAgent(ctx context.Context, payload types.RegisterAgent) (types.RegisteredAgent, error)
RegisterAgent within a project. The project in which the agent is registered is parsed from the authorization token. Users are not allowed to register agents.
func (*Client) ResourceProfile ¶
func (c *Client) ResourceProfile(ctx context.Context, resourceProfileID string) (types.ResourceProfile, error)
ResourceProfile by ID.
func (*Client) ResourceProfiles ¶
func (c *Client) ResourceProfiles(ctx context.Context, instanceID string, params types.ResourceProfilesParams) (types.ResourceProfiles, error)
ResourceProfiles from a core instance in descending order.
func (*Client) SAMLMappings ¶ added in v1.10.0
func (c *Client) SAMLMappings(ctx context.Context, in types.ListSAMLMappings) (types.SAMLMappings, error)
func (*Client) Search ¶ added in v1.2.0
func (c *Client) Search(ctx context.Context, in types.SearchQuery) ([]types.SearchResult, error)
func (*Client) SendVerificationEmail ¶
SendVerificationEmail sends a verification email to the user. When a new user registers within Calyptia Cloud with password, it should receive a verification email, in the case it didn't receive it, or the email expired already, use this endpoint to request a new one.
func (*Client) SetAgentToken ¶
SetAgentToken sets the "X-Agent-Token" header of the client.
func (*Client) SetCoreInstanceToken ¶ added in v0.19.0
SetCoreInstanceToken sets the "X-Aggregator-Token" header of the client.
func (*Client) SetProjectToken ¶
SetProjectToken sets the "X-Project-Token" header of the client.
func (*Client) SetUserAgent ¶
SetUserAgent sets the "User-Agent" header of the client.
func (*Client) TerminateActiveTraceSession ¶ added in v0.6.1
func (c *Client) TerminateActiveTraceSession(ctx context.Context, pipelineID string) (types.TerminatedTraceSession, error)
TerminateActiveTraceSession terminates the current active trace session on the pipeline.
func (*Client) Tokens ¶
func (c *Client) Tokens(ctx context.Context, projectID string, params types.TokensParams) (types.Tokens, error)
Tokens from a project.
func (*Client) TraceRecords ¶ added in v0.6.1
func (c *Client) TraceRecords(ctx context.Context, sessionID string, params types.TraceRecordsParams) (types.TraceRecords, error)
TraceRecords from a trace session. With backward pagination, the list is sorted by createdAt in descending order.
func (*Client) TraceSession ¶ added in v0.6.1
TraceSession by ID. This can be still active or not.
func (*Client) TraceSessions ¶ added in v0.6.1
func (c *Client) TraceSessions(ctx context.Context, pipelineID string, params types.TraceSessionsParams) (types.TraceSessions, error)
TraceSessions from a pipeline. With backward pagination, the list is sorted by createdAt in descending order.
func (*Client) UpdateAgent ¶
UpdateAgent by its ID. Users are allowed to only update a restricted set of fields (name); while agents are allowed to update the whole configuration.
func (*Client) UpdateClusterObject ¶ added in v0.17.1
func (c *Client) UpdateClusterObject(ctx context.Context, checkID string, opts types.UpdateClusterObject) error
UpdateClusterObject by its ID.
func (*Client) UpdateClusterObjectRegex ¶ added in v1.4.7
func (*Client) UpdateConfigSection ¶ added in v0.9.1
func (*Client) UpdateConfigSectionSet ¶ added in v0.9.1
func (*Client) UpdateCoreInstance ¶ added in v0.19.0
func (c *Client) UpdateCoreInstance(ctx context.Context, instanceID string, payload types.UpdateCoreInstance) error
UpdateCoreInstance by its ID.
func (*Client) UpdateCoreInstanceCheck ¶ added in v0.9.1
func (c *Client) UpdateCoreInstanceCheck(ctx context.Context, checkID string, opts types.UpdateCoreInstanceCheck) error
UpdateCoreInstanceCheck by its ID.
func (*Client) UpdateCoreInstanceFile ¶ added in v1.5.2
func (*Client) UpdateCoreInstanceSecret ¶ added in v1.5.2
func (*Client) UpdateEnvironment ¶ added in v0.3.1
func (c *Client) UpdateEnvironment(ctx context.Context, environmentID string, payload types.UpdateEnvironment) error
UpdateEnvironment by its ID.
func (*Client) UpdateFleet ¶ added in v1.1.0
func (*Client) UpdateFleetFile ¶ added in v1.5.6
func (c *Client) UpdateFleetFile(ctx context.Context, fileID string, opts types.UpdateFleetFile) error
UpdateFleetFile by its ID.
func (*Client) UpdateIngestCheck ¶ added in v0.15.0
func (c *Client) UpdateIngestCheck(ctx context.Context, checkID string, opts types.UpdateIngestCheck) error
UpdateIngestCheck by its ID.
func (*Client) UpdateMember ¶ added in v1.2.6
func (*Client) UpdatePipeline ¶
func (c *Client) UpdatePipeline(ctx context.Context, pipelineID string, opts types.UpdatePipeline) (types.UpdatedPipeline, error)
UpdatePipeline by its ID.
func (*Client) UpdatePipelineCheck ¶ added in v0.9.1
func (c *Client) UpdatePipelineCheck(ctx context.Context, checkID string, opts types.UpdatePipelineCheck) error
UpdatePipelineCheck by its ID.
func (*Client) UpdatePipelineClusterObjects ¶ added in v0.19.0
func (c *Client) UpdatePipelineClusterObjects(ctx context.Context, pipelineID string, opts types.UpdatePipelineClusterObjects) error
UpdatePipelineClusterObjects update a list of related cluster objects to a pipeline.
func (*Client) UpdatePipelineFile ¶
func (c *Client) UpdatePipelineFile(ctx context.Context, fileID string, opts types.UpdatePipelineFile) error
UpdatePipelineFile by its ID.
func (*Client) UpdatePipelineLog ¶ added in v1.6.2
func (*Client) UpdatePipelineMetadata ¶ added in v1.4.7
func (c *Client) UpdatePipelineMetadata(ctx context.Context, pipelineID string, opts types.UpdatePipelineMetadata) error
UpdatePipelineMetadata modifies the metadata associated with a specific pipeline.
Parameters: - `ctx`: The context for executing the HTTP request. - `pipelineID`: The unique identifier for the target pipeline. - `opts`: A struct containing the key-value pair(s) to update or add to the pipeline's metadata.
Returns: - An error if the request fails, if the pipeline with the given ID is not found, or if the provided metadata is invalid.
The function constructs a request URL using the provided pipelineID and then sends a PATCH request to update the pipeline's metadata with the key-value pairs specified in the `opts` parameter. If a metadata key already exists, its value will be updated; if the key does not exist, it will be added.
func (*Client) UpdatePipelinePort ¶
func (c *Client) UpdatePipelinePort(ctx context.Context, portID string, opts types.UpdatePipelinePort) error
UpdatePipelinePort by its ID.
func (*Client) UpdatePipelineSecret ¶
func (c *Client) UpdatePipelineSecret(ctx context.Context, secretID string, opts types.UpdatePipelineSecret) error
UpdatePipelineSecret by its ID.
func (*Client) UpdateProcessingRule ¶ added in v0.9.1
func (*Client) UpdateProcessingRuleTemplate ¶ added in v1.4.7
func (*Client) UpdateProcessingRuleV1 ¶ added in v1.9.0
func (*Client) UpdateProject ¶
func (c *Client) UpdateProject(ctx context.Context, projectID string, opts types.UpdateProject) error
UpdateProject by its ID.
func (*Client) UpdateResourceProfile ¶
func (c *Client) UpdateResourceProfile(ctx context.Context, resourceProfileID string, opts types.UpdateResourceProfile) error
UpdateResourceProfile by its ID.
func (*Client) UpdateSAMLMapping ¶ added in v1.10.0
func (*Client) UpdateToken ¶
UpdateToken by its ID.
func (*Client) UpdateTraceSession ¶ added in v0.6.1
func (c *Client) UpdateTraceSession(ctx context.Context, sessionID string, in types.UpdateTraceSession) (types.Updated, error)
UpdateTraceSession list of plugins to trace and/or lifespan. The session must still be active.
func (*Client) ValidateFluentbitConfig ¶ added in v1.9.0
Source Files ¶
- agent.go
- agent_config.go
- agent_error.go
- audit_log.go
- aws_marketplace.go
- client.go
- cluster_object.go
- cluster_object_regex.go
- config_section.go
- config_validator.go
- core_instance.go
- core_instance_check.go
- core_instance_file.go
- core_instance_secret.go
- environment.go
- fleet.go
- fleet_file.go
- health.go
- ingest_check.go
- invitation.go
- membership.go
- metric.go
- pipeline.go
- pipeline_check.go
- pipeline_config.go
- pipeline_file.go
- pipeline_log.go
- pipeline_port.go
- pipeline_secret.go
- pipeline_status.go
- processing_rule.go
- processing_rule_legacy.go
- processing_rule_template.go
- project.go
- resource_profile.go
- saml_mapping.go
- search.go
- token.go
- trace.go
- user.go
Directories ¶
Path | Synopsis |
---|---|
Package secrets provides RSA codec to work with Calyptia Cloud pipeline secrets.
|
Package secrets provides RSA codec to work with Calyptia Cloud pipeline secrets. |
Package token provides a decoder for Calyptia Cloud projects tokens.
|
Package token provides a decoder for Calyptia Cloud projects tokens. |