api

package module
v0.0.0-...-de1fd8b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

Meta Client

Meta Client is a library contains code to interactive with Seal Meta server, it's first consumers are github.com/seal-io/seal, github.com/seal-io/meta.

This repository is synchronized from https://github.com/seal-io/meta/api. Code changes are made in that location, merged into github.com/seal-io/meta and later synced here.

There are NO compatibility guarantees for this library, yet.

License

Copyright (c) 2022 Seal Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at LICENSE file for details.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Ingest ingests specified type dataset from the exposing service,
	// and parses dataset with the given IngestParser.
	Ingest(ctx context.Context, typ schema.DatasetIngestRequestType, since time.Time, parse IngestParser) (err error)

	// IngestAll ingests all types dataset from the exposing service,
	// and parses dataset with the given IngestParser.
	IngestAll(ctx context.Context, since time.Time, parse IngestParser) (err error)

	// Close closes the client.
	Close() error
}

Client holds the actions for receiving from the exposing service.

func GetClient

func GetClient(ctx context.Context, listenOn string) (Client, error)

GetClient returns the Client.

type IngestParser

type IngestParser func(currentWindow int32, body schema.DatasetIngestResponseBody) error

IngestParser is the parser to parse the given api.DatasetIngestResponseBody.

Directories

Path Synopsis
Package cvss provides a toolbox of the CVSS vector calculating.
Package cvss provides a toolbox of the CVSS vector calculating.
cvssv2
Package cvssv2 provides a toolbox of the CVSS(V2) vector calculating, according to https://www.first.org/cvss/v2/guide。
Package cvssv2 provides a toolbox of the CVSS(V2) vector calculating, according to https://www.first.org/cvss/v2/guide。
cvssv3
Package cvssv3 provides a toolbox of the CVSS(V3) vector calculating, according to https://www.first.org/cvss/v3.1/specification-document and https://www.first.org/cvss/v3.0/specification-document.
Package cvssv3 provides a toolbox of the CVSS(V3) vector calculating, according to https://www.first.org/cvss/v3.1/specification-document and https://www.first.org/cvss/v3.0/specification-document.
Package genver inspires by golang.org/x/mod/semver, and processes none semantic standard version.
Package genver inspires by golang.org/x/mod/semver, and processes none semantic standard version.
Package ssvc provides a toolbox of the SSVC vector calculating.
Package ssvc provides a toolbox of the SSVC vector calculating.
ssvc2
Package ssvc2 provides a toolbox of the SSVC(V2) vector calculating, according to https://resources.sei.cmu.edu/library/asset-view.cfm?assetid=653459.
Package ssvc2 provides a toolbox of the SSVC(V2) vector calculating, according to https://resources.sei.cmu.edu/library/asset-view.cfm?assetid=653459.
Package wfn provides a representation, bindings and matching of the Well-Formed CPE names as per https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7695.pdf and https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7696.pdf
Package wfn provides a representation, bindings and matching of the Well-Formed CPE names as per https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7695.pdf and https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7696.pdf

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL