statusnotify

package
v0.0.0-...-bb2f907 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OutputType_name = map[int32]string{
		0: "SUMMARY",
		1: "ALL",
	}
	OutputType_value = map[string]int32{
		"SUMMARY": 0,
		"ALL":     1,
	}
)

Enum value maps for OutputType.

View Source
var (
	StatusValue_name = map[int32]string{
		0: "STATUS_ERROR",
		1: "NOT_READY",
		2: "READY",
		3: "NOT_DEPLOYED",
		4: "DEPLOYED",
	}
	StatusValue_value = map[string]int32{
		"STATUS_ERROR": 0,
		"NOT_READY":    1,
		"READY":        2,
		"NOT_DEPLOYED": 3,
		"DEPLOYED":     4,
	}
)

Enum value maps for StatusValue.

View Source
var File_statusnotify_proto protoreflect.FileDescriptor

Functions

func RegisterStatusNotifyServer

func RegisterStatusNotifyServer(s *grpc.Server, srv StatusNotifyServer)

Types

type AppStatus

type AppStatus struct {
	App         string           `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	StatusValue StatusValue      `protobuf:"varint,2,opt,name=statusValue,proto3,enum=StatusValue" json:"statusValue,omitempty"`
	Clusters    []*ClusterStatus `protobuf:"bytes,3,rep,name=clusters,proto3" json:"clusters,omitempty"`
	// contains filtered or unexported fields
}

func (*AppStatus) Descriptor deprecated

func (*AppStatus) Descriptor() ([]byte, []int)

Deprecated: Use AppStatus.ProtoReflect.Descriptor instead.

func (*AppStatus) GetApp

func (x *AppStatus) GetApp() string

func (*AppStatus) GetClusters

func (x *AppStatus) GetClusters() []*ClusterStatus

func (*AppStatus) GetStatusValue

func (x *AppStatus) GetStatusValue() StatusValue

func (*AppStatus) ProtoMessage

func (*AppStatus) ProtoMessage()

func (*AppStatus) ProtoReflect

func (x *AppStatus) ProtoReflect() protoreflect.Message

func (*AppStatus) Reset

func (x *AppStatus) Reset()

func (*AppStatus) String

func (x *AppStatus) String() string

type ClusterKey

type ClusterKey struct {
	ClusterProvider string `protobuf:"bytes,1,opt,name=clusterProvider,proto3" json:"clusterProvider,omitempty"`
	Cluster         string `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterKey) Descriptor deprecated

func (*ClusterKey) Descriptor() ([]byte, []int)

Deprecated: Use ClusterKey.ProtoReflect.Descriptor instead.

func (*ClusterKey) GetCluster

func (x *ClusterKey) GetCluster() string

func (*ClusterKey) GetClusterProvider

func (x *ClusterKey) GetClusterProvider() string

func (*ClusterKey) ProtoMessage

func (*ClusterKey) ProtoMessage()

func (*ClusterKey) ProtoReflect

func (x *ClusterKey) ProtoReflect() protoreflect.Message

func (*ClusterKey) Reset

func (x *ClusterKey) Reset()

func (*ClusterKey) String

func (x *ClusterKey) String() string

type ClusterStatus

type ClusterStatus struct {
	ClusterProvider string            `protobuf:"bytes,1,opt,name=clusterProvider,proto3" json:"clusterProvider,omitempty"`
	Cluster         string            `protobuf:"bytes,2,opt,name=cluster,proto3" json:"cluster,omitempty"`
	StatusValue     StatusValue       `protobuf:"varint,3,opt,name=statusValue,proto3,enum=StatusValue" json:"statusValue,omitempty"`
	Resources       []*ResourceStatus `protobuf:"bytes,4,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*ClusterStatus) Descriptor deprecated

func (*ClusterStatus) Descriptor() ([]byte, []int)

Deprecated: Use ClusterStatus.ProtoReflect.Descriptor instead.

func (*ClusterStatus) GetCluster

func (x *ClusterStatus) GetCluster() string

func (*ClusterStatus) GetClusterProvider

func (x *ClusterStatus) GetClusterProvider() string

func (*ClusterStatus) GetResources

func (x *ClusterStatus) GetResources() []*ResourceStatus

func (*ClusterStatus) GetStatusValue

func (x *ClusterStatus) GetStatusValue() StatusValue

func (*ClusterStatus) ProtoMessage

func (*ClusterStatus) ProtoMessage()

func (*ClusterStatus) ProtoReflect

func (x *ClusterStatus) ProtoReflect() protoreflect.Message

func (*ClusterStatus) Reset

func (x *ClusterStatus) Reset()

func (*ClusterStatus) String

func (x *ClusterStatus) String() string

type DigKey

type DigKey struct {
	Project               string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	CompositeApp          string `protobuf:"bytes,2,opt,name=compositeApp,proto3" json:"compositeApp,omitempty"`
	CompositeAppVersion   string `protobuf:"bytes,3,opt,name=compositeAppVersion,proto3" json:"compositeAppVersion,omitempty"`
	DeploymentIntentGroup string `protobuf:"bytes,4,opt,name=deploymentIntentGroup,proto3" json:"deploymentIntentGroup,omitempty"`
	// contains filtered or unexported fields
}

func (*DigKey) Descriptor deprecated

func (*DigKey) Descriptor() ([]byte, []int)

Deprecated: Use DigKey.ProtoReflect.Descriptor instead.

func (*DigKey) GetCompositeApp

func (x *DigKey) GetCompositeApp() string

func (*DigKey) GetCompositeAppVersion

func (x *DigKey) GetCompositeAppVersion() string

func (*DigKey) GetDeploymentIntentGroup

func (x *DigKey) GetDeploymentIntentGroup() string

func (*DigKey) GetProject

func (x *DigKey) GetProject() string

func (*DigKey) ProtoMessage

func (*DigKey) ProtoMessage()

func (*DigKey) ProtoReflect

func (x *DigKey) ProtoReflect() protoreflect.Message

func (*DigKey) Reset

func (x *DigKey) Reset()

func (*DigKey) String

func (x *DigKey) String() string

type GVK

type GVK struct {
	Group   string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Kind    string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*GVK) Descriptor deprecated

func (*GVK) Descriptor() ([]byte, []int)

Deprecated: Use GVK.ProtoReflect.Descriptor instead.

func (*GVK) GetGroup

func (x *GVK) GetGroup() string

func (*GVK) GetKind

func (x *GVK) GetKind() string

func (*GVK) GetVersion

func (x *GVK) GetVersion() string

func (*GVK) ProtoMessage

func (*GVK) ProtoMessage()

func (*GVK) ProtoReflect

func (x *GVK) ProtoReflect() protoreflect.Message

func (*GVK) Reset

func (x *GVK) Reset()

func (*GVK) String

func (x *GVK) String() string

type LcKey

type LcKey struct {
	Project      string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	LogicalCloud string `protobuf:"bytes,2,opt,name=logicalCloud,proto3" json:"logicalCloud,omitempty"`
	// contains filtered or unexported fields
}

func (*LcKey) Descriptor deprecated

func (*LcKey) Descriptor() ([]byte, []int)

Deprecated: Use LcKey.ProtoReflect.Descriptor instead.

func (*LcKey) GetLogicalCloud

func (x *LcKey) GetLogicalCloud() string

func (*LcKey) GetProject

func (x *LcKey) GetProject() string

func (*LcKey) ProtoMessage

func (*LcKey) ProtoMessage()

func (*LcKey) ProtoReflect

func (x *LcKey) ProtoReflect() protoreflect.Message

func (*LcKey) Reset

func (x *LcKey) Reset()

func (*LcKey) String

func (x *LcKey) String() string

type OutputType

type OutputType int32
const (
	OutputType_SUMMARY OutputType = 0
	OutputType_ALL     OutputType = 1
)

func (OutputType) Descriptor

func (OutputType) Descriptor() protoreflect.EnumDescriptor

func (OutputType) Enum

func (x OutputType) Enum() *OutputType

func (OutputType) EnumDescriptor deprecated

func (OutputType) EnumDescriptor() ([]byte, []int)

Deprecated: Use OutputType.Descriptor instead.

func (OutputType) Number

func (x OutputType) Number() protoreflect.EnumNumber

func (OutputType) String

func (x OutputType) String() string

func (OutputType) Type

type ResourceStatus

type ResourceStatus struct {
	Name        string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Gvk         *GVK        `protobuf:"bytes,2,opt,name=gvk,proto3" json:"gvk,omitempty"`
	StatusValue StatusValue `protobuf:"varint,3,opt,name=statusValue,proto3,enum=StatusValue" json:"statusValue,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceStatus) Descriptor deprecated

func (*ResourceStatus) Descriptor() ([]byte, []int)

Deprecated: Use ResourceStatus.ProtoReflect.Descriptor instead.

func (*ResourceStatus) GetGvk

func (x *ResourceStatus) GetGvk() *GVK

func (*ResourceStatus) GetName

func (x *ResourceStatus) GetName() string

func (*ResourceStatus) GetStatusValue

func (x *ResourceStatus) GetStatusValue() StatusValue

func (*ResourceStatus) ProtoMessage

func (*ResourceStatus) ProtoMessage()

func (*ResourceStatus) ProtoReflect

func (x *ResourceStatus) ProtoReflect() protoreflect.Message

func (*ResourceStatus) Reset

func (x *ResourceStatus) Reset()

func (*ResourceStatus) String

func (x *ResourceStatus) String() string

type StatusDeregistration

type StatusDeregistration struct {
	ClientId string `protobuf:"bytes,1,opt,name=clientId,proto3" json:"clientId,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusDeregistration) Descriptor deprecated

func (*StatusDeregistration) Descriptor() ([]byte, []int)

Deprecated: Use StatusDeregistration.ProtoReflect.Descriptor instead.

func (*StatusDeregistration) GetClientId

func (x *StatusDeregistration) GetClientId() string

func (*StatusDeregistration) ProtoMessage

func (*StatusDeregistration) ProtoMessage()

func (*StatusDeregistration) ProtoReflect

func (x *StatusDeregistration) ProtoReflect() protoreflect.Message

func (*StatusDeregistration) Reset

func (x *StatusDeregistration) Reset()

func (*StatusDeregistration) String

func (x *StatusDeregistration) String() string

type StatusDeregistrationResponse

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

func (*StatusDeregistrationResponse) Descriptor deprecated

func (*StatusDeregistrationResponse) Descriptor() ([]byte, []int)

Deprecated: Use StatusDeregistrationResponse.ProtoReflect.Descriptor instead.

func (*StatusDeregistrationResponse) ProtoMessage

func (*StatusDeregistrationResponse) ProtoMessage()

func (*StatusDeregistrationResponse) ProtoReflect

func (*StatusDeregistrationResponse) Reset

func (x *StatusDeregistrationResponse) Reset()

func (*StatusDeregistrationResponse) String

type StatusDetail

type StatusDetail struct {

	// Types that are assignable to StatusDetail:
	//	*StatusDetail_App
	//	*StatusDetail_Cluster
	StatusDetail isStatusDetail_StatusDetail `protobuf_oneof:"statusDetail"`
	// contains filtered or unexported fields
}

func (*StatusDetail) Descriptor deprecated

func (*StatusDetail) Descriptor() ([]byte, []int)

Deprecated: Use StatusDetail.ProtoReflect.Descriptor instead.

func (*StatusDetail) GetApp

func (x *StatusDetail) GetApp() *AppStatus

func (*StatusDetail) GetCluster

func (x *StatusDetail) GetCluster() *ClusterStatus

func (*StatusDetail) GetStatusDetail

func (m *StatusDetail) GetStatusDetail() isStatusDetail_StatusDetail

func (*StatusDetail) ProtoMessage

func (*StatusDetail) ProtoMessage()

func (*StatusDetail) ProtoReflect

func (x *StatusDetail) ProtoReflect() protoreflect.Message

func (*StatusDetail) Reset

func (x *StatusDetail) Reset()

func (*StatusDetail) String

func (x *StatusDetail) String() string

type StatusDetail_App

type StatusDetail_App struct {
	App *AppStatus `protobuf:"bytes,1,opt,name=app,proto3,oneof"`
}

type StatusDetail_Cluster

type StatusDetail_Cluster struct {
	Cluster *ClusterStatus `protobuf:"bytes,2,opt,name=cluster,proto3,oneof"`
}

type StatusNotification

type StatusNotification struct {
	StatusValue StatusValue     `protobuf:"varint,1,opt,name=statusValue,proto3,enum=StatusValue" json:"statusValue,omitempty"`
	Details     []*StatusDetail `protobuf:"bytes,2,rep,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusNotification) Descriptor deprecated

func (*StatusNotification) Descriptor() ([]byte, []int)

Deprecated: Use StatusNotification.ProtoReflect.Descriptor instead.

func (*StatusNotification) GetDetails

func (x *StatusNotification) GetDetails() []*StatusDetail

func (*StatusNotification) GetStatusValue

func (x *StatusNotification) GetStatusValue() StatusValue

func (*StatusNotification) ProtoMessage

func (*StatusNotification) ProtoMessage()

func (*StatusNotification) ProtoReflect

func (x *StatusNotification) ProtoReflect() protoreflect.Message

func (*StatusNotification) Reset

func (x *StatusNotification) Reset()

func (*StatusNotification) String

func (x *StatusNotification) String() string

type StatusNotifyClient

type StatusNotifyClient interface {
	StatusRegister(ctx context.Context, in *StatusRegistration, opts ...grpc.CallOption) (StatusNotify_StatusRegisterClient, error)
	StatusDeregister(ctx context.Context, in *StatusDeregistration, opts ...grpc.CallOption) (*StatusDeregistrationResponse, error)
}

StatusNotifyClient is the client API for StatusNotify service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type StatusNotifyServer

type StatusNotifyServer interface {
	StatusRegister(*StatusRegistration, StatusNotify_StatusRegisterServer) error
	StatusDeregister(context.Context, *StatusDeregistration) (*StatusDeregistrationResponse, error)
}

StatusNotifyServer is the server API for StatusNotify service.

type StatusNotify_StatusRegisterClient

type StatusNotify_StatusRegisterClient interface {
	Recv() (*StatusNotification, error)
	grpc.ClientStream
}

type StatusNotify_StatusRegisterServer

type StatusNotify_StatusRegisterServer interface {
	Send(*StatusNotification) error
	grpc.ServerStream
}

type StatusRegistration

type StatusRegistration struct {
	ClientId string `protobuf:"bytes,1,opt,name=clientId,proto3" json:"clientId,omitempty"`
	// Types that are assignable to Key:
	//	*StatusRegistration_DigKey
	//	*StatusRegistration_LcKey
	//	*StatusRegistration_ClusterKey
	Key        isStatusRegistration_Key `protobuf_oneof:"key"`
	StatusType StatusValue              `protobuf:"varint,5,opt,name=statusType,proto3,enum=StatusValue" json:"statusType,omitempty"`
	Apps       []string                 `protobuf:"bytes,6,rep,name=apps,proto3" json:"apps,omitempty"`
	Clusters   []string                 `protobuf:"bytes,7,rep,name=clusters,proto3" json:"clusters,omitempty"`
	Resources  []string                 `protobuf:"bytes,8,rep,name=resources,proto3" json:"resources,omitempty"`
	Output     OutputType               `protobuf:"varint,9,opt,name=output,proto3,enum=OutputType" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusRegistration) Descriptor deprecated

func (*StatusRegistration) Descriptor() ([]byte, []int)

Deprecated: Use StatusRegistration.ProtoReflect.Descriptor instead.

func (*StatusRegistration) GetApps

func (x *StatusRegistration) GetApps() []string

func (*StatusRegistration) GetClientId

func (x *StatusRegistration) GetClientId() string

func (*StatusRegistration) GetClusterKey

func (x *StatusRegistration) GetClusterKey() *ClusterKey

func (*StatusRegistration) GetClusters

func (x *StatusRegistration) GetClusters() []string

func (*StatusRegistration) GetDigKey

func (x *StatusRegistration) GetDigKey() *DigKey

func (*StatusRegistration) GetKey

func (m *StatusRegistration) GetKey() isStatusRegistration_Key

func (*StatusRegistration) GetLcKey

func (x *StatusRegistration) GetLcKey() *LcKey

func (*StatusRegistration) GetOutput

func (x *StatusRegistration) GetOutput() OutputType

func (*StatusRegistration) GetResources

func (x *StatusRegistration) GetResources() []string

func (*StatusRegistration) GetStatusType

func (x *StatusRegistration) GetStatusType() StatusValue

func (*StatusRegistration) ProtoMessage

func (*StatusRegistration) ProtoMessage()

func (*StatusRegistration) ProtoReflect

func (x *StatusRegistration) ProtoReflect() protoreflect.Message

func (*StatusRegistration) Reset

func (x *StatusRegistration) Reset()

func (*StatusRegistration) String

func (x *StatusRegistration) String() string

type StatusRegistration_ClusterKey

type StatusRegistration_ClusterKey struct {
	ClusterKey *ClusterKey `protobuf:"bytes,4,opt,name=clusterKey,proto3,oneof"`
}

type StatusRegistration_DigKey

type StatusRegistration_DigKey struct {
	DigKey *DigKey `protobuf:"bytes,2,opt,name=digKey,proto3,oneof"`
}

type StatusRegistration_LcKey

type StatusRegistration_LcKey struct {
	LcKey *LcKey `protobuf:"bytes,3,opt,name=lcKey,proto3,oneof"`
}

type StatusValue

type StatusValue int32
const (
	StatusValue_STATUS_ERROR StatusValue = 0
	StatusValue_NOT_READY    StatusValue = 1
	StatusValue_READY        StatusValue = 2
	StatusValue_NOT_DEPLOYED StatusValue = 3
	StatusValue_DEPLOYED     StatusValue = 4
)

func (StatusValue) Descriptor

func (StatusValue) Enum

func (x StatusValue) Enum() *StatusValue

func (StatusValue) EnumDescriptor deprecated

func (StatusValue) EnumDescriptor() ([]byte, []int)

Deprecated: Use StatusValue.Descriptor instead.

func (StatusValue) Number

func (x StatusValue) Number() protoreflect.EnumNumber

func (StatusValue) String

func (x StatusValue) String() string

func (StatusValue) Type

type UnimplementedStatusNotifyServer

type UnimplementedStatusNotifyServer struct {
}

UnimplementedStatusNotifyServer can be embedded to have forward compatible implementations.

func (*UnimplementedStatusNotifyServer) StatusDeregister

func (*UnimplementedStatusNotifyServer) StatusRegister

Jump to

Keyboard shortcuts

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