resources

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TransformActionConfigForm = forms.Form{
	ErrorMsg: "invalid data encountered in the transform action config form",
	Fields: []forms.Field{
		{
			Name: "items",
			Validators: []forms.Validator{

				forms.IsList{

					Validators: []forms.Validator{
						kodex.IsItem{},
					},
				},

				kodex.IsItems{},
			},
		},
	},
}
View Source
var TransformConfigForm = forms.Form{
	ErrorMsg: "invalid data encountered in the transform config form",
	Fields: []forms.Field{
		{
			Name: "items",
			Validators: []forms.Validator{
				forms.IsList{
					Validators: []forms.Validator{
						forms.IsStringMap{},
						kodex.IsItem{},
					},
				},
			},
		},
	},
}
View Source
var TransformForm = forms.Form{
	ErrorMsg: "invalid data encountered in the transform form",
	Fields: []forms.Field{
		{
			Name: "undo",
			Validators: []forms.Validator{
				forms.IsOptional{Default: false},
				forms.IsBoolean{},
			},
		},
		{
			Name: "key",
			Validators: []forms.Validator{
				forms.IsOptional{},
				forms.IsBytes{
					Encoding: "base64",
				},
			},
		},
		{
			Name: "salt",
			Validators: []forms.Validator{
				forms.IsOptional{},
				forms.IsBytes{
					Encoding: "base64",
				},
			},
		},
		{
			Name: "items",
			Validators: []forms.Validator{

				forms.IsList{

					Validators: []forms.Validator{
						kodex.IsItem{},
					},
				},

				kodex.IsItems{},
			},
		},
		{
			Name: "actions",
			Validators: []forms.Validator{
				forms.IsOptional{Default: []map[string]interface{}{}},

				forms.IsList{
					Validators: []forms.Validator{

						kodex.IsActionSpecification{},
					},
				},

				kodex.IsActionSpecifications{},
			},
		},
	},
}

Functions

func AllObjects

func AllObjects(c *gin.Context)

Get a list of objects

func AssociateObjects

func AssociateObjects(c *gin.Context)

func AssociatedObjects

func AssociatedObjects(c *gin.Context)

func CreateObject

func CreateObject(c *gin.Context)

func CreateObjectRole

func CreateObjectRole(c *gin.Context)

Create a new object role

func Definitions

func Definitions(c *gin.Context)

Get the definitions

func DeleteObject

func DeleteObject(c *gin.Context)

Delete a given object.

func DeleteObjectRole

func DeleteObjectRole(c *gin.Context)

Delete a object role

func DissociateObjects

func DissociateObjects(c *gin.Context)

func GetObj

func GetObj(c *gin.Context, key string) kodex.Model

Return the object that was initialized via the ValidObject decorator

func GetObject

func GetObject(c *gin.Context) kodex.Model

Return the object that was initialized via the ValidObject decorator

func GetObjs

func GetObjs(c *gin.Context) []kodex.Model

func ObjectDetails

func ObjectDetails(c *gin.Context)

func ObjectRoles

func ObjectRoles(c *gin.Context)

Get a list of object roles

func Objects

func Objects(c *gin.Context)

Get a list of objects

func SayHello

func SayHello(c *gin.Context)

Simply return a 200 if the access token works

func Submit

func Submit(c *gin.Context)

func TransformActionConfigEndpoint

func TransformActionConfigEndpoint(meter kodex.Meter) func(*gin.Context)

func TransformConfigEndpoint

func TransformConfigEndpoint(meter kodex.Meter) func(*gin.Context)

func TransformEndpoint

func TransformEndpoint(meter kodex.Meter) func(c *gin.Context)

func UpdateObject

func UpdateObject(c *gin.Context)

Update a object

func User

func User(c *gin.Context)

Return the profile of the logged in user

Types

type JSONDataObject

type JSONDataObject interface {
	ListJSONData() map[string]interface{}
}

Directories

Path Synopsis
pcapgo
Package pcapgo provides some native PCAP support, not requiring C libpcap to be installed.
Package pcapgo provides some native PCAP support, not requiring C libpcap to be installed.

Jump to

Keyboard shortcuts

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