operation

package
v0.0.0-...-7b7c10a Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectResponse

type CollectResponse struct {
	QueryID string `json:"query_id"`
}

CollectResponse is a response for collect api.

type ExtractRequest

type ExtractRequest struct {
	QueryID string `json:"query_id"`
}

ExtractRequest is a response for ReleaseRequest.

type ExtractResponse

type ExtractResponse struct {
	Target string `json:"target"`
}

ExtractResponse is a response for ExtractRequest.

type Operation

type Operation struct {
	SubjectResolver subjectResolver
	PolicyService   policyService
	ProtectService  protectService
	ReleaseService  releaseService
	CollectService  collectService
	ExtractService  extractService
}

Operation defines handlers for Gatekeeper operations.

func (*Operation) GetRESTHandlers

func (o *Operation) GetRESTHandlers() []handler.Handler

GetRESTHandlers get all controller API handler available for this service.

type ProtectRequest

type ProtectRequest struct {
	Policy string `json:"policy"`
	Target string `json:"target"`
}

ProtectRequest is a request to protect Target using policy with ID Policy.

type ProtectResponse

type ProtectResponse struct {
	DID string `json:"did"`
}

ProtectResponse is a response for ProtectRequest.

type ReleaseRequest

type ReleaseRequest struct {
	DID string `json:"did"`
}

ReleaseRequest is a request to create release transaction on a DID.

type ReleaseResponse

type ReleaseResponse struct {
	TicketID string `json:"ticket_id"`
}

ReleaseResponse is a response for ReleaseRequest.

type TicketStatusResponse

type TicketStatusResponse struct {
	Status string `json:"status"`
}

TicketStatusResponse is a response with status of the ticket.

Jump to

Keyboard shortcuts

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