resources

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 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 ChangeRequestDetails added in v0.1.0

func ChangeRequestDetails(c *gin.Context)

Get a list of change requestse

func ChangeRequestReviews added in v0.1.0

func ChangeRequestReviews(c *gin.Context)

Get a list of change requestse

func ChangeRequests added in v0.1.0

func ChangeRequests(c *gin.Context)

Get a list of change requestse

func CreateChangeRequest added in v0.1.0

func CreateChangeRequest(c *gin.Context)

func CreateChangeRequestReview added in v0.1.0

func CreateChangeRequestReview(c *gin.Context)

func CreateDefaultObjectRole added in v0.1.0

func CreateDefaultObjectRole(c *gin.Context)

Create a new object role

func CreateObject

func CreateObject(c *gin.Context)

func CreateObjectRole

func CreateObjectRole(c *gin.Context)

Create a new object role

func DefaultObjectRoles added in v0.1.0

func DefaultObjectRoles(c *gin.Context)

Get a list of object roles

func Definitions

func Definitions(c *gin.Context)

Get the definitions

func DeleteChangeRequest added in v0.1.0

func DeleteChangeRequest(c *gin.Context)

Delete a change request

func DeleteChangeRequestReview added in v0.1.0

func DeleteChangeRequestReview(c *gin.Context)

Delete a change request

func DeleteDefaultObjectRole added in v0.1.0

func DeleteDefaultObjectRole(c *gin.Context)

Delete a object role

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 GetBlueprint added in v0.0.9

func GetBlueprint(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 UpdateChangeRequest added in v0.1.0

func UpdateChangeRequest(c *gin.Context)

Update a change request

func UpdateChangeRequestReview added in v0.1.0

func UpdateChangeRequestReview(c *gin.Context)

Update a change request

func UpdateChangeRequestReviewStatus added in v0.1.0

func UpdateChangeRequestReviewStatus(c *gin.Context)

func UpdateChangeRequestStatus added in v0.1.0

func UpdateChangeRequestStatus(c *gin.Context)

func UpdateObject

func UpdateObject(c *gin.Context)

Update a object

func UploadBlueprint added in v0.0.9

func UploadBlueprint(c *gin.Context)

func User

func User(c *gin.Context)

Return the profile of the logged in user

func UserObjectRoles added in v0.1.0

func UserObjectRoles(c *gin.Context)

Get a list of object roles

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