inspection

package
v0.0.0-...-bde9636 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteTarget

func DeleteTarget(handler gorexos.RequestHandler, urn string) error

Types

type PortalReference

type PortalReference struct {
	LocalTransformation gorexos.Transformation `json:"localTransformation"`
	RexTagURL           string                 `json:"rexTagUrl"`
}

type Target

type Target struct {
	Urn             string           `json:"urn"`
	Name            string           `json:"name"`
	Owner           string           `json:"owner"`
	PortalReference *PortalReference `json:"portalReference"`
}

func CreateTarget

func CreateTarget(handler gorexos.RequestHandler, name string, portalReference *PortalReference) (Target, error)

type TargetListElement

type TargetListElement struct {
	Urn                    string `json:"urn"`
	Name                   string `json:"name"`
	Owner                  string `json:"owner"`
	Type                   string `json:"type"`
	Public                 bool   `json:"public"`
	LastUpdated            string `json:"lastUpdated"`
	NrOfReadPermittedUsers string `json:"numberOfReadPermittedUsers"`
}

type TargetsPaged

type TargetsPaged struct {
	Page struct {
		Number        int `json:"number"`
		Size          int `json:"size"`
		TotalElements int `json:"totalElements"`
		TotalPages    int `json:"totalPages"`
	} `json:"page"`
	Targets []TargetListElement `json:"targets"`
}

func GetTargets

func GetTargets(handler gorexos.RequestHandler, page int64) (TargetsPaged, error)

Jump to

Keyboard shortcuts

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