processes

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package process contains port management functionality on security

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOpts

type GetOpts struct {
	TenantID  string `q:"tenantid"`
	UserToken string `q:"usertoken"`
}

GetOpts represents result of order API response.

func (GetOpts) ToProcessQuery

func (opts GetOpts) ToProcessQuery() (string, error)

ToProcessQuery formats a GetOpts into a query string.

type GetOptsBuilder

type GetOptsBuilder interface {
	ToProcessQuery() (string, error)
}

GetOptsBuilder allows extensions to add additional parameters to the order API request

type GetResult

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

GetResult represents the result of a get operation. Call its Extract method to interpret it as a Process.

func Get

func Get(client *eclcloud.ServiceClient, processID string, opts GetOptsBuilder) (r GetResult)

Get retrieves details on a single order, by ID.

func (GetResult) Extract

func (r GetResult) Extract() (*ProcessInstance, error)

Extract is a function that accepts a result and extracts a Process.

func (GetResult) ExtractInto

func (r GetResult) ExtractInto(v interface{}) error

Extract interprets any commonResult as a Process, if possible.

type ProcessInstance

type ProcessInstance struct {
	Status ProcessStatus `json:"status"`
}

type ProcessStatus

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

Directories

Path Synopsis
Package testing contains processes unit tests
Package testing contains processes unit tests

Jump to

Keyboard shortcuts

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