packages

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyValueSchemaName        = "key-value"
	GroupedKeyValueSchemaName = "grouped-key-value"
)

Sliver Implant Framework Copyright (C) 2024 Bishop Fox

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Variables

This section is empty.

Functions

func IsValidSchemaType

func IsValidSchemaType(name string) bool

Types

type GroupedKeyValuePairs

type GroupedKeyValuePairs struct {
	// contains filtered or unexported fields
}

This output schema is suitable for one or more key-values pairs grouped by a group name. This schema assumes the data is already grouped and does not perform the grouping itself.

func (*GroupedKeyValuePairs) CreateTable

func (gkvp *GroupedKeyValuePairs) CreateTable() string

func (*GroupedKeyValuePairs) IngestData

func (gkvp *GroupedKeyValuePairs) IngestData(data []byte, order []string, arguments ...string) error

func (*GroupedKeyValuePairs) Name

func (gkvp *GroupedKeyValuePairs) Name() string

type KeyValueData

type KeyValueData map[string]string

This output schema is suitable for data that is an array of key-value pairs

func (*KeyValueData) UnmarshalJSON

func (kvd *KeyValueData) UnmarshalJSON(data []byte) error

type KeyValuePairs

type KeyValuePairs struct {
	// contains filtered or unexported fields
}

func (*KeyValuePairs) CreateTable

func (kvp *KeyValuePairs) CreateTable() string

func (*KeyValuePairs) IngestData

func (kvp *KeyValuePairs) IngestData(data []byte, order []string, arguments ...string) error

func (*KeyValuePairs) Name

func (kvp *KeyValuePairs) Name() string

type OutputSchema

type OutputSchema struct {
	Name       string `json:"name"`
	RawColumns string `json:"columns"`
	GroupBy    string `json:"group_by"`
	// contains filtered or unexported fields
}

func (*OutputSchema) Columns

func (schema *OutputSchema) Columns() []string

func (*OutputSchema) IngestColumns

func (schema *OutputSchema) IngestColumns()

type PackageOutput

type PackageOutput interface {
	// The names of columns followed by any other strings needed, like the data itself
	// Each type that implements this interface will have to make sure the correct number
	// of strings are provided
	IngestData([]byte, []string, ...string) error
	// Renders the data into a table
	CreateTable() string
	Name() string
}

func GetNewPackageOutput

func GetNewPackageOutput(name string) PackageOutput

Jump to

Keyboard shortcuts

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