api

package
v0.0.0-...-fdd9b93 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Name                 string                  `json:"name,omitempty"`
	CAName               string                  `json:"ca_name,omitempty"`
	TLSCAName            string                  `json:"tlsca_name,omitempty"`
	Endpoints            interface{}             `json:"endpoints,omitempty"`
	Resources            *util.ResourceReturn    `json:"resources,omitempty"`
	IndividualResources  *current.CAResources    `json:"individualResources,omitempty"`
	TLS                  interface{}             `json:"tls,omitempty"`
	CRNString            string                  `json:"crnString,omitempty"`
	CRN                  *config.CRN             `json:"crn,omitempty"`
	ResourcePlanID       string                  `json:"resource_plan_id,omitempty"`
	Storage              *current.CAStorages     `json:"storage,omitempty"`
	CRStatus             *current.IBPCAStatus    `json:"crstatus,omitempty"`
	Version              string                  `json:"version,omitempty"`
	Configs              *current.ConfigOverride `json:"configs,omitempty"`
	CreationTimestamp    int64                   `json:"creation_timestamp,omitempty"`
	LastUpdatedTimestamp int64                   `json:"last_updated,omitempty"`
	Region               string                  `json:"region,omitempty"`
	Zone                 string                  `json:"zone,omitempty"`
	Replicas             int32                   `json:"replicas,omitempty"`
	HSM                  *current.HSM            `json:"hsm,omitempty"`
	MSP                  *MSP                    `json:"msp,omitempty"`
}

type ConfigOverride

type ConfigOverride struct {
	CA    *json.RawMessage `json:"ca"`
	TLSCA *json.RawMessage `json:"tlsca"`
}

type ConnectionProfile

type ConnectionProfile struct {
	Endpoints interface{} `json:"endpoints"`
	TLS       interface{} `json:"tls"`
	CA        interface{} `json:"ca"`
	TLSCA     interface{} `json:"tlsca"`
}

type CreateRequest

type CreateRequest struct {
	Version   string               `json:"version,omitempty"`
	Resources *current.CAResources `json:"resources,omitempty"`
	Storage   *current.CAStorages  `json:"storage,omitempty"`
	Arch      []string             `json:"arch,omitempty"`
	// Purposefully a pointer to make differentiate between 0 and not passed
	Replicas       *int32                  `json:"replicas,omitempty"`
	ConfigOverride *current.ConfigOverride `json:"configoverride,omitempty"`
	HSM            *current.HSM            `json:"hsm,omitempty"` // DEPRECATED
	Zone           string                  `json:"zone,omitempty"`
	Region         string                  `json:"region,omitempty"`
}

type DeleteRequest

type DeleteRequest struct {
	NodeType  string `json:"node_type"`
	NodeName  string `json:"node_name"`
	ServiceID string `json:"serviceId"`
}

type DeleteResponse

type DeleteResponse struct {
	Message string `json:"message,omitempty"`
}

type Deleted

type Deleted struct {
	Timestamp string `json:"timestamp"`
	Reason    string `json:"reason"`
	Who       string `json:"who"`
}

type GetResponse

type GetResponse struct {
	Message string `json:"message,omitempty"`
	Response
}

type MSP

type MSP struct {
	CA    interface{} `json:"ca"`
	TLSCA interface{} `json:"tlsca"`
}

type Response

type Response struct {
	Component `json:",inline"`
}

type UpdateRequest

type UpdateRequest struct {
	Version        string                  `json:"version,omitempty"`
	Resources      *current.CAResources    `json:"resources,omitempty"`
	Replicas       *int32                  `json:"replicas,omitempty"`
	ConfigOverride *current.ConfigOverride `json:"configoverride,omitempty"`
	Actions        *current.CAAction       `json:"actions,omitempty"`
	HSM            *current.HSM            `json:"hsm,omitempty"` // DEPRECATED
}

type UpdateResponse

type UpdateResponse struct {
	Message string `json:"message,omitempty"`
	Response
}

Jump to

Keyboard shortcuts

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