baask8ss

package
v0.0.0-...-b1a156a Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Zlib Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Baas deployment files
	BaaSDeploymentPath = "k8s/ansible/vars/namespaces"
)
View Source
const (
	// ErrBaask8sManagementDisabled is an error raised when trying to access the baask8ss management baask8ss
	// when the server has been started with the --external-baask8ss flag
	Errbaask8sManagementDisabled = baasapi.Error("baask8s management is disabled")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AttrReg

type AttrReg struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Baasdeployment

type Baasdeployment struct {
	Name        string      `json:"name"`
	Createdtime metav1.Time `json:"createdtime"`
	Replicas    int32       `json:"replicas"`
	Namespace   string      `json:"namespace"`
	Type        string      `json:"type"`
}

type Baaspods

type Baaspods struct {
	NetworkID string `json:"NetworkID"`
	Owner     string `json:"Owner"`
	Platform  string `json:"Platform"`
	NodeName  string `json:"NodeName"`
	PodName   string `json:"PodName"`
	//Tags             []string            `json:"Tags"`
	Status     v1.PodStatus  `json:"Status"`
	StartTime  *metav1.Time  `json:"startTime,omitempty" protobuf:"bytes,7,opt,name=startTime"`
	UID        types.UID     `json:"UID"`
	Namespace  string        `json:"Namespace"`
	ObjectMeta metav1.Object `json:"ObjectMeta"`
}

type CHLCreatePayload

type CHLCreatePayload struct {
	Token             string `json:"token"`
	ChannelName       string `json:"channelName"`
	ChannelConfigPath string `json:"channelConfigPath"`
	Username          string `json:"username"`
	Orgname           string `json:"orgname"`
}

func (*CHLCreatePayload) Validate

func (payload *CHLCreatePayload) Validate(r *http.Request) error

type CHLPayload

type CHLPayload struct {
	Allchannels  []baasapi.CHL
	Currchannels []baasapi.CHL
}

type Handler

type Handler struct {
	*mux.Router

	Baask8sService      baasapi.Baask8sService
	BaasmspService      baasapi.BaasmspService
	Baask8sGroupService baasapi.Baask8sGroupService
	FileService         baasapi.FileService
	JWTService          baasapi.JWTService
	Snapshotter         baasapi.Snapshotter
	CAFilesManager      baasapi.CAFilesManager
	JobService          baasapi.JobService
	// contains filtered or unexported fields
}

Handler is the HTTP handler used to handle baask8s operations.

func NewHandler

func NewHandler(bouncer *security.RequestBouncer) *Handler

NewHandler creates a handler to manage baask8s operations.

type Network

type Network struct {
	Cas        []string
	Peers      []string
	Orderers   []string
	Zookeepers []string
	Kafkas     []string
}

type SVCCreatePayload

type SVCCreatePayload struct {
	Svcname string `json:"svcname"`
}

func (*SVCCreatePayload) Validate

func (payload *SVCCreatePayload) Validate(r *http.Request) error

Jump to

Keyboard shortcuts

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