apistandard

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var API_DEFINITION string = "" +

	"ADMIN-INIT               :id                                                           " + "\n" +
	"ADMIN-INITLOG            :id                                                           " + "\n" +
	"SETTING-CRTNS            :id, ns, repoaddr, regaddr                                    " + "\n" +
	"SETTING-SETREPO          :id, ns, repoaddr, repoid, repopw                             " + "\n" +
	"SETTING-SETREG           :id, ns, regaddr, regid, regpw                                " + "\n" +

	"SETTING-CRTMON           :id                                                           " + "\n" +

	"BUILD                    :id, ns, repoaddr, regaddr                                    " + "\n" +
	"BUILDLOG                 :id                                                           " + "\n" +
	"RESOURCE-NDS             :id, ns                                                       " + "\n" +
	"RESOURCE-PDS             :id, ns                                                       " + "\n" +
	"RESOURCE-PLOG            :id, ns, podnm                                                " + "\n" +
	"RESOURCE-SVC             :id, ns                                                       " + "\n" +
	"RESOURCE-DPL             :id, ns                                                       " + "\n" +

	"RESOURCE-EVNT            :id, ns                                                       " + "\n" +
	"RESOURCE-RSRC            :id, ns                                                       " + "\n" +
	"RESOURCE-NSPC            :id, ns                                                       " + "\n" +
	"RESOURCE-INGR            :id, ns                                                       " + "\n" +
	"RESOURCE-NDPORT          :id, ns                                                       " + "\n" +

	"RESOURCE-PSCH            :id, ns                                                       " + "\n" +
	"RESOURCE-PUNSCH          :id, ns                                                       " + "\n" +
	"RESOURCE-CCPU            :id, ns                                                       " + "\n" +
	"RESOURCE-CMEM            :id, ns                                                       " + "\n" +
	"RESOURCE-CFSR            :id, ns                                                       " + "\n" +
	"RESOURCE-CFSW            :id, ns                                                       " + "\n" +
	"RESOURCE-CNETR           :id, ns                                                       " + "\n" +
	"RESOURCE-CNETT           :id, ns                                                       " + "\n" +
	"RESOURCE-VOLAVAIL        :id                                                           " + "\n" +
	"RESOURCE-VOLCAP          :id                                                           " + "\n" +
	"RESOURCE-VOLUSD          :id                                                           " + "\n" +
	"RESOURCE-NTEMP           :id                                                           " + "\n" +
	"RESOURCE-NTEMPCH         :id                                                           " + "\n" +
	"RESOURCE-NTEMPAV         :id                                                           " + "\n" +
	"RESOURCE-NPROCS          :id                                                           " + "\n" +
	"RESOURCE-NCORES          :id                                                           " + "\n" +
	"RESOURCE-NMEM            :id                                                           " + "\n" +
	"RESOURCE-NMEMTOT         :id                                                           " + "\n" +
	"RESOURCE-NDISKR          :id                                                           " + "\n" +
	"RESOURCE-NDISKW          :id                                                           " + "\n" +
	"RESOURCE-NNETR           :id                                                           " + "\n" +
	"RESOURCE-NNETT           :id                                                           " + "\n" +
	"RESOURCE-NDISKWT         :id                                                           " + "\n" +
	"APPLY-REGSEC             :id, ns                                                       " + "\n" +
	"APPLY-DIST               :id, ns, repoaddr, regaddr                                    " + "\n" +
	"APPLY-CRTOPSSRC          :id, ns, repoaddr, regaddr                                    " + "\n" +
	"APPLY-RESTART            :id, ns, resource, resourcenm                                 " + "\n" +
	"APPLY-ROLLBACK           :id, ns, resource, resourcenm                                 " + "\n" +
	"APPLY-KILL               :id, ns, resource, resourcenm                                 " + "\n" +
	"APPLY-NETRESH            :id                                                           " + "\n" +
	"APPLY-HPA                :id, ns, resource, resourcenm                                 " + "\n" +
	"APPLY-HPAUN              :id, ns, resource, resourcenm                                 " + "\n" +
	"APPLY-QOS                :id, ns, resource, resourcenm                                 " + "\n" +
	"APPLY-QOSUN              :id, ns, resource, resourcenm                                 " + "\n" +
	"APPLY-INGR               :id, ns, hostnm, svcnm                                        " + "\n" +
	"APPLY-INGRUN             :id, ns, hostnm, svcnm                                        " + "\n" +
	"APPLY-NDPORT             :id, ns, svcnm                                                " + "\n" +
	"APPLY-NDPORTUN           :id, ns, svcnm                                                "
View Source
var ASgi = _CONSTRUCT_API_INPUT()

Functions

This section is empty.

Types

type API_INPUT

type API_INPUT map[string]string

type API_METADATA

type API_METADATA map[string]map[string]string

func ClusterNodeRecordLatest

func ClusterNodeRecordLatest() (API_METADATA, error)

func ClusterVolumeRecordLatest

func ClusterVolumeRecordLatest() (API_METADATA, error)

type API_OUTPUT

type API_OUTPUT struct {
	HEAD API_METADATA

	BODY string
}

type API_STD

type API_STD map[string][]string

func (API_STD) LegacyInputTranslate

func (asgi API_STD) LegacyInputTranslate(legacy_in string) (API_INPUT, error)

func (API_STD) LegacyOutputTranslate

func (asgi API_STD) LegacyOutputTranslate()

func (API_STD) PrintPrettyDefinition

func (asgi API_STD) PrintPrettyDefinition()

func (API_STD) PrintRawDefinition

func (asgi API_STD) PrintRawDefinition()

func (API_STD) Run

func (asgi API_STD) Run(std_cmd API_INPUT) (API_OUTPUT, error)

func (API_STD) StdCmdInputBuildFromLinearInstruction

func (asgi API_STD) StdCmdInputBuildFromLinearInstruction(linear_string string) (API_INPUT, error)

func (API_STD) StdCmdInputBuildHelper

func (asgi API_STD) StdCmdInputBuildHelper(std_keys []string, v_list []string) (API_INPUT, error)

func (API_STD) Verify

func (asgi API_STD) Verify(verifiable API_INPUT) error

type LEGACY_API_OUTPUT

type LEGACY_API_OUTPUT struct {
	HEAD string

	BODY string
}

type LEGACY_EXCHANGE

type LEGACY_EXCHANGE struct {
	ACD  string
	CMD  string
	DATA string
	CNT  string
	MSG  string
}

type LEGACY_FORM

type LEGACY_FORM struct {
	FORM LEGACY_API_OUTPUT
}

Jump to

Keyboard shortcuts

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