KubFly / Go
KubFly SDK for Go
The reference of the API: the packages of the module kubfly.io/sdk, from their doc comments.
api | Package api is the API of KubFly for Go — the kubfly-sdk-api of the Java SDK: events of six levels with arguments and tags, scopes whose frames make the tree of a request across goroutines and services, metrics, alerts, health checks and the usage of the process, all delivered to the collectors (Collector) that are linked in. |
api/alert | Package alert holds the alert of a metric — Alert: its kind of thresholds (Threshold), what they are compared with (Basis) — and Severity, the state of a metric with thresholds or of a health check: the io.kubfly.sdk.api.alert package of the Java SDK. |
api/config | Package config reads the variables of KubFly: the environment of the process, completed by the configuration file KUBFLY_CONFIG (./kubfly.env by default, the .env format); the environment wins. |
api/environment | Package environment holds the parts of the environment of a process: its place in Kubernetes, the machine and the service — the records of io.kubfly.sdk.api.environment of the Java SDK; the platform is in package environment/platform. |
api/environment/platform | Package platform holds the platform of the environment of a process — io.kubfly.sdk.api.environment.platform of the Java SDK: the interface Platform and one part per platform known to the SDKs of all languages, of the kinds of package api/platform, as the platform of a usage snapshot. |
api/language | Package language is the languages of the texts of a process: the one api.Config.Language chooses, with an identifier shared by the SDKs of all languages. |
api/platform | Package platform holds the kind of a platform — io.kubfly.sdk.api.platform of the Java SDK: one platform, two parts of it, its facts in the environment (environment/platform.Platform) and its usage in a snapshot (usage/platform.Platform), both of this kind. |
api/profile | Package profile is the profiling of the process (format.md §9b): the kinds of profiles, the tree of the stacks (StackNode, Stacks), the profile of an interval folded by stack (Profile, Row) and the Sampler that takes them from runtime/pprof — the io.kubfly.sdk.api.profile package of the Java SDK. |
api/status | Package status holds the entities of STATUS (decision 87) — io.kubfly.sdk.api.status.Status and io.kubfly.sdk.api.status.* of the Java SDK, flattened as the package usage flattens its parts: status.pipeline.State is PipelineState, status.output.bucket.State — OutputBucketState. |
api/traffic | Package traffic holds the model of the stream traffic: the links of a process with its peers, every request or message of HTTP, SQL, Kafka and AMQP over an interval, without sampling — the io.kubfly.sdk.api.traffic package of the Java SDK. |
api/usage | Package usage holds the records of a usage snapshot — Usage and its parts: the io.kubfly.sdk.api.usage package of the Java SDK with its subpackages. |
api/usage/platform | Package platform holds the platform of a usage snapshot — the io.kubfly.sdk.api.usage.platform package of the Java SDK with its subpackages: the interface Platform and one part per platform known to the SDKs of all languages, of the kinds of package api/platform, named by their Java package (usage.platform.jvm.Memory is JvmMemory, usage.platform.go.Gc is GoGc). |
api/usage/sampler | Package sampler takes usage snapshots: the io.kubfly.sdk.api.usage.sampler package of the Java SDK. |
api/usage/sampler/samplertest | Package samplertest prepares directories that stand for /proc and /sys/fs/cgroup of a Linux machine, for the tests of the sampler and of the usage metrics. |
api/util | Package util holds the general types of the SDK — io.kubfly.sdk.api.util of the Java SDK: Option, a value or nothing; Critical, a section of many writers and one reader, and the stripes of the writers. |
bucket | Package bucket is a connection to one bucket of an object bucket: objects by key, listed in the order of their keys (the order of their UTF-8 bytes, as S3 lists them) — the kubfly-sdk-bucket module of the Java SDK. |
bucket/buckettest | Package buckettest is the contract of every bucket — the StoreContract of the tests of the Java SDK: a kind passes it with an empty bucket per test. |
bucket/fs | Package fs is the file system as a bucket: a directory is the bucket, a key is a path under it — the io.kubfly.sdk.bucket.fs package of the Java SDK. |
bucket/mem | Package mem is the memory of the process as a bucket — the io.kubfly.sdk.bucket.mem package of the Java SDK: for tests and for reading in the same process what was just written (kubfly.io/sdk/kubflytest). |
bucket/s3 | Package s3 is S3 and S3-compatible clouds (Yandex, VK Cloud, Selectel, MinIO) as a bucket: one bucket, requests signed by AWS Signature Version 4, no dependencies but the standard library — the io.kubfly.sdk.bucket.s3 package of the Java SDK. |
buffer | Package buffer holds the primitives of the binary formats of KubFly: how one value is written and read back. |
codec | Package codec is the base of the streaming parsers and generators of the formats of exchange — the kubfly-sdk-codec module of the Java SDK: XML (codec/xml), JSON, Smile and CBOR, strict, without a tree, with limits, only the standard library. |
codec/cbor | Package cbor is the CBOR generator (RFC 8949) — io.kubfly.sdk.codec.cbor of the Java SDK: every data item is written straight into a buffer at an offset, the offset after it given back, nothing allocated; a nil buffer writes nothing and counts the bytes, as the JSON generator of codec/json. |
codec/json | Package json is a streaming parser of JSON (RFC 8259), strict and without a tree — io.kubfly.sdk.codec.json of the Java SDK: Next reads the document event by event, a reader takes what it needs and skips the rest. |
codec/smile | Package smile is the Smile generator and parser — io.kubfly.sdk.codec.smile of the Java SDK: Smile 1.0, the binary JSON of Jackson that the bulk API of Elasticsearch and OpenSearch takes (application/smile). |
codec/xml | Package xml is a streaming parser of XML, strict and without a tree, and its generator — io.kubfly.sdk.codec.xml of the Java SDK: Next reads the document event by event, a reader takes what it needs and skips the rest. |
decoder | Package decoder reads the KubFly format at its lowest level — segments, record frames, the references of bodies and the envelope of the cipher: the kubfly-sdk-decoder module of the Java SDK. |
format | Package format is the KubFly format at the level its writers and readers share — the constants (magics, streams, record types, flags, the limits of the dictionary), reverse varints and the nested entities of entities.tsv, written and read: the kubfly-sdk-format module of the Java SDK. |
format/entitiestest | Package entitiestest makes sample entities for the tests: every field the next number — as the Samples of the tests of the Java SDK make them, so the reference segments of sdk/spec hold the same values in every language. |
kubflytest | Package kubflytest is the telemetry of a test as the types of reflector — the kubfly-sdk-test module of the Java SDK: a body runs in a root frame of its own, and its capture is everything of the trace of that frame — the frames under it by their parent, on any goroutine the context goes to; the frames of other services of the process it called, by their caller (net/http in the same process); the events and the ends of all of them. |
nethttp | Package nethttp is the integration of net/http: a Handler for the server and a RoundTripper for the client. |
output/bucket | Package bucket is the output of a stand bucket: it writes the process into an object bucket in the KubFly format (sdk/spec/format.md) — the kubfly-sdk-output-bucket module of the Java SDK, an output of the pipeline (kubfly.io/sdk/pipeline). |
output/bucket/config | Package config holds the variables of the output of a bucket and their defaults — the only place of the defaults (the rule of the SDK): code takes the values from bucket.Config. |
output/console | Package console is the console as an output of the pipeline (kubfly.io/sdk/pipeline) — kubfly-sdk-output-console of the Java SDK: the records after the ordering window, as pretty lines for people or JSON lines for machines, on the standard output or error. |
output/console/config | Package config holds the variables of the console and their defaults — the only place of the defaults (the rule of the SDK): code takes the values from console.Config. |
pipeline | Package pipeline is the core of the collectors — the kubfly-sdk-pipeline module of the Java SDK. |
pipeline/config | Package config holds the names of the settings of the pipeline and their defaults — KUBFLY_PIPELINE_*, shared by every output: the config.Variables class of kubfly-sdk-pipeline of the Java SDK. |
reflector | Package reflector reads what the collectors wrote to a bucket: the segments of the streams, decoded into items — the reflector of the Java SDK. |
slog | Package slog connects KubFly with log/slog of the standard library in both directions, without a loop — the kubfly-sdk-slf4j module of the Java SDK: |