protobuf

package
v0.0.0-...-1088ae0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protofile_proto protoreflect.FileDescriptor

Functions

func RegisterAnsibleRunnerServer

func RegisterAnsibleRunnerServer(s *grpc.Server, srv AnsibleRunnerServer)

Types

type AnsibleRunnerClient

type AnsibleRunnerClient interface {
	Create(ctx context.Context, in *Cluster, opts ...grpc.CallOption) (AnsibleRunner_CreateClient, error)
	Delete(ctx context.Context, in *Cluster, opts ...grpc.CallOption) (AnsibleRunner_DeleteClient, error)
	Update(ctx context.Context, in *Cluster, opts ...grpc.CallOption) (AnsibleRunner_UpdateClient, error)
	GetMasterIP(ctx context.Context, in *Cluster, opts ...grpc.CallOption) (AnsibleRunner_GetMasterIPClient, error)
}

AnsibleRunnerClient is the client API for AnsibleRunner service.

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

type AnsibleRunnerServer

AnsibleRunnerServer is the server API for AnsibleRunner service.

type AnsibleRunner_CreateClient

type AnsibleRunner_CreateClient interface {
	Recv() (*TaskStatus, error)
	grpc.ClientStream
}

type AnsibleRunner_CreateServer

type AnsibleRunner_CreateServer interface {
	Send(*TaskStatus) error
	grpc.ServerStream
}

type AnsibleRunner_DeleteClient

type AnsibleRunner_DeleteClient interface {
	Recv() (*TaskStatus, error)
	grpc.ClientStream
}

type AnsibleRunner_DeleteServer

type AnsibleRunner_DeleteServer interface {
	Send(*TaskStatus) error
	grpc.ServerStream
}

type AnsibleRunner_GetMasterIPClient

type AnsibleRunner_GetMasterIPClient interface {
	Recv() (*TaskStatus, error)
	grpc.ClientStream
}

type AnsibleRunner_GetMasterIPServer

type AnsibleRunner_GetMasterIPServer interface {
	Send(*TaskStatus) error
	grpc.ServerStream
}

type AnsibleRunner_UpdateClient

type AnsibleRunner_UpdateClient interface {
	Recv() (*TaskStatus, error)
	grpc.ClientStream
}

type AnsibleRunner_UpdateServer

type AnsibleRunner_UpdateServer interface {
	Send(*TaskStatus) error
	grpc.ServerStream
}

type Cluster

type Cluster struct {
	ID           string     `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Name         string     `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	DisplayName  string     `protobuf:"bytes,3,opt,name=DisplayName,proto3" json:"DisplayName,omitempty"`
	HostURL      string     `protobuf:"bytes,4,opt,name=HostURL,proto3" json:"HostURL,omitempty"`
	EntityStatus string     `protobuf:"bytes,5,opt,name=EntityStatus,proto3" json:"EntityStatus,omitempty"`
	ClusterType  string     `protobuf:"bytes,6,opt,name=ClusterType,proto3" json:"ClusterType,omitempty"`
	Services     []*Service `protobuf:"bytes,7,rep,name=Services,proto3" json:"Services,omitempty"`
	NHosts       int32      `protobuf:"varint,8,opt,name=NHosts,proto3" json:"NHosts,omitempty"`
	MasterIP     string     `protobuf:"bytes,9,opt,name=MasterIP,proto3" json:"MasterIP,omitempty"`
	ProjectID    string     `protobuf:"bytes,10,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
	Description  string     `protobuf:"bytes,11,opt,name=Description,proto3" json:"Description,omitempty"`
	Image        string     `protobuf:"bytes,12,opt,name=Image,proto3" json:"Image,omitempty"`
	Keys         []string   `protobuf:"bytes,13,rep,name=Keys,proto3" json:"Keys,omitempty"`
	// contains filtered or unexported fields
}

func (*Cluster) Descriptor deprecated

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

Deprecated: Use Cluster.ProtoReflect.Descriptor instead.

func (*Cluster) GetClusterType

func (x *Cluster) GetClusterType() string

func (*Cluster) GetDescription

func (x *Cluster) GetDescription() string

func (*Cluster) GetDisplayName

func (x *Cluster) GetDisplayName() string

func (*Cluster) GetEntityStatus

func (x *Cluster) GetEntityStatus() string

func (*Cluster) GetHostURL

func (x *Cluster) GetHostURL() string

func (*Cluster) GetID

func (x *Cluster) GetID() string

func (*Cluster) GetImage

func (x *Cluster) GetImage() string

func (*Cluster) GetKeys

func (x *Cluster) GetKeys() []string

func (*Cluster) GetMasterIP

func (x *Cluster) GetMasterIP() string

func (*Cluster) GetNHosts

func (x *Cluster) GetNHosts() int32

func (*Cluster) GetName

func (x *Cluster) GetName() string

func (*Cluster) GetProjectID

func (x *Cluster) GetProjectID() string

func (*Cluster) GetServices

func (x *Cluster) GetServices() []*Service

func (Cluster) PrintClusterData

func (c Cluster) PrintClusterData(Logger *log.Logger)

func (*Cluster) ProtoMessage

func (*Cluster) ProtoMessage()

func (*Cluster) ProtoReflect

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

func (*Cluster) Reset

func (x *Cluster) Reset()

func (*Cluster) String

func (x *Cluster) String() string

type Image

type Image struct {
	ID           string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Name         string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	AnsibleUser  string `protobuf:"bytes,3,opt,name=AnsibleUser,proto3" json:"AnsibleUser,omitempty"`
	CloudImageID string `protobuf:"bytes,4,opt,name=CloudImageID,proto3" json:"CloudImageID,omitempty"`
	// contains filtered or unexported fields
}

func (*Image) Descriptor deprecated

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

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetAnsibleUser

func (x *Image) GetAnsibleUser() string

func (*Image) GetCloudImageID

func (x *Image) GetCloudImageID() string

func (*Image) GetID

func (x *Image) GetID() string

func (*Image) GetName

func (x *Image) GetName() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

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

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type Project

type Project struct {
	ID           string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Name         string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	DisplayName  string `protobuf:"bytes,3,opt,name=DisplayName,proto3" json:"DisplayName,omitempty"`
	GroupID      string `protobuf:"bytes,4,opt,name=GroupID,proto3" json:"GroupID,omitempty"`
	Description  string `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"`
	DefaultImage string `protobuf:"bytes,6,opt,name=DefaultImage,proto3" json:"DefaultImage,omitempty"`
	// contains filtered or unexported fields
}

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetDefaultImage

func (x *Project) GetDefaultImage() string

func (*Project) GetDescription

func (x *Project) GetDescription() string

func (*Project) GetDisplayName

func (x *Project) GetDisplayName() string

func (*Project) GetGroupID

func (x *Project) GetGroupID() string

func (*Project) GetID

func (x *Project) GetID() string

func (*Project) GetName

func (x *Project) GetName() string

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

type Service

type Service struct {
	ID           string            `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Name         string            `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Type         string            `protobuf:"bytes,3,opt,name=Type,proto3" json:"Type,omitempty"`
	ClusterRef   string            `protobuf:"bytes,4,opt,name=ClusterRef,proto3" json:"ClusterRef,omitempty"`
	ServiceState string            `protobuf:"bytes,5,opt,name=ServiceState,proto3" json:"ServiceState,omitempty"`
	ServiceURL   string            `protobuf:"bytes,6,opt,name=ServiceURL,proto3" json:"ServiceURL,omitempty"`
	Config       map[string]string `` /* 153-byte string literal not displayed */
	DisplayName  string            `protobuf:"bytes,8,opt,name=DisplayName,proto3" json:"DisplayName,omitempty"`
	EntityStatus string            `protobuf:"bytes,9,opt,name=EntityStatus,proto3" json:"EntityStatus,omitempty"`
	Version      string            `protobuf:"bytes,10,opt,name=Version,proto3" json:"Version,omitempty"`
	URL          string            `protobuf:"bytes,11,opt,name=URL,proto3" json:"URL,omitempty"`
	Description  string            `protobuf:"bytes,12,opt,name=Description,proto3" json:"Description,omitempty"` //    repeated DependencyConfig Dependencies = 13;
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetClusterRef

func (x *Service) GetClusterRef() string

func (*Service) GetConfig

func (x *Service) GetConfig() map[string]string

func (*Service) GetDescription

func (x *Service) GetDescription() string

func (*Service) GetDisplayName

func (x *Service) GetDisplayName() string

func (*Service) GetEntityStatus

func (x *Service) GetEntityStatus() string

func (*Service) GetID

func (x *Service) GetID() string

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetServiceState

func (x *Service) GetServiceState() string

func (*Service) GetServiceURL

func (x *Service) GetServiceURL() string

func (*Service) GetType

func (x *Service) GetType() string

func (*Service) GetURL

func (x *Service) GetURL() string

func (*Service) GetVersion

func (x *Service) GetVersion() string

func (Service) PrintServiceData

func (s Service) PrintServiceData(Logger *log.Logger)

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type ServiceConfig

type ServiceConfig struct {
	ParameterName  string   `protobuf:"bytes,1,opt,name=ParameterName,proto3" json:"ParameterName,omitempty"`   //name for ansible extra vars
	Type           string   `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"`                     //string, bool, float or int
	PossibleValues []string `protobuf:"bytes,3,rep,name=PossibleValues,proto3" json:"PossibleValues,omitempty"` //TODO: add stored functions for values verification
	DefaultValue   string   `protobuf:"bytes,4,opt,name=DefaultValue,proto3" json:"DefaultValue,omitempty"`
	Required       bool     `protobuf:"varint,5,opt,name=Required,proto3" json:"Required,omitempty"` //add this param to ansible extra vars or no
	Description    string   `protobuf:"bytes,6,opt,name=Description,proto3" json:"Description,omitempty"`
	AnsibleVarName string   `protobuf:"bytes,7,opt,name=AnsibleVarName,proto3" json:"AnsibleVarName,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceConfig) Descriptor deprecated

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

Deprecated: Use ServiceConfig.ProtoReflect.Descriptor instead.

func (*ServiceConfig) GetAnsibleVarName

func (x *ServiceConfig) GetAnsibleVarName() string

func (*ServiceConfig) GetDefaultValue

func (x *ServiceConfig) GetDefaultValue() string

func (*ServiceConfig) GetDescription

func (x *ServiceConfig) GetDescription() string

func (*ServiceConfig) GetParameterName

func (x *ServiceConfig) GetParameterName() string

func (*ServiceConfig) GetPossibleValues

func (x *ServiceConfig) GetPossibleValues() []string

func (*ServiceConfig) GetRequired

func (x *ServiceConfig) GetRequired() bool

func (*ServiceConfig) GetType

func (x *ServiceConfig) GetType() string

func (*ServiceConfig) ProtoMessage

func (*ServiceConfig) ProtoMessage()

func (*ServiceConfig) ProtoReflect

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

func (*ServiceConfig) Reset

func (x *ServiceConfig) Reset()

func (*ServiceConfig) String

func (x *ServiceConfig) String() string

type ServiceDependency

type ServiceDependency struct {
	ServiceType           string   `protobuf:"bytes,1,opt,name=ServiceType,proto3" json:"ServiceType,omitempty"`                     //name of service type, on which this service version depends
	ServiceVersions       []string `protobuf:"bytes,2,rep,name=ServiceVersions,proto3" json:"ServiceVersions,omitempty"`             //list of depended service versions that could be used with this service version
	DefaultServiceVersion string   `protobuf:"bytes,3,opt,name=DefaultServiceVersion,proto3" json:"DefaultServiceVersion,omitempty"` //default dependent service version
	Description           string   `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"`                     //bool Required = 5; //is this dependency required
	// contains filtered or unexported fields
}

func (*ServiceDependency) Descriptor deprecated

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

Deprecated: Use ServiceDependency.ProtoReflect.Descriptor instead.

func (*ServiceDependency) GetDefaultServiceVersion

func (x *ServiceDependency) GetDefaultServiceVersion() string

func (*ServiceDependency) GetDescription

func (x *ServiceDependency) GetDescription() string

func (*ServiceDependency) GetServiceType

func (x *ServiceDependency) GetServiceType() string

func (*ServiceDependency) GetServiceVersions

func (x *ServiceDependency) GetServiceVersions() []string

func (*ServiceDependency) ProtoMessage

func (*ServiceDependency) ProtoMessage()

func (*ServiceDependency) ProtoReflect

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

func (*ServiceDependency) Reset

func (x *ServiceDependency) Reset()

func (*ServiceDependency) String

func (x *ServiceDependency) String() string

type ServicePort

type ServicePort struct {
	Port        int32  `protobuf:"varint,1,opt,name=Port,proto3" json:"Port,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
	// contains filtered or unexported fields
}

func (*ServicePort) Descriptor deprecated

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

Deprecated: Use ServicePort.ProtoReflect.Descriptor instead.

func (*ServicePort) GetDescription

func (x *ServicePort) GetDescription() string

func (*ServicePort) GetPort

func (x *ServicePort) GetPort() int32

func (*ServicePort) ProtoMessage

func (*ServicePort) ProtoMessage()

func (*ServicePort) ProtoReflect

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

func (*ServicePort) Reset

func (x *ServicePort) Reset()

func (*ServicePort) String

func (x *ServicePort) String() string

type ServiceType

type ServiceType struct {
	ID             string            `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Type           string            `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"`
	Description    string            `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"`
	Versions       []*ServiceVersion `protobuf:"bytes,4,rep,name=Versions,proto3" json:"Versions,omitempty"`
	DefaultVersion string            `protobuf:"bytes,5,opt,name=DefaultVersion,proto3" json:"DefaultVersion,omitempty"`
	Class          string            `protobuf:"bytes,6,opt,name=Class,proto3" json:"Class,omitempty"`
	AccessPort     int32             `protobuf:"varint,7,opt,name=AccessPort,proto3" json:"AccessPort,omitempty"`
	Ports          []*ServicePort    `protobuf:"bytes,8,rep,name=Ports,proto3" json:"Ports,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceType) Descriptor deprecated

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

Deprecated: Use ServiceType.ProtoReflect.Descriptor instead.

func (*ServiceType) GetAccessPort

func (x *ServiceType) GetAccessPort() int32

func (*ServiceType) GetClass

func (x *ServiceType) GetClass() string

func (*ServiceType) GetDefaultVersion

func (x *ServiceType) GetDefaultVersion() string

func (*ServiceType) GetDescription

func (x *ServiceType) GetDescription() string

func (*ServiceType) GetID

func (x *ServiceType) GetID() string

func (*ServiceType) GetPorts

func (x *ServiceType) GetPorts() []*ServicePort

func (*ServiceType) GetType

func (x *ServiceType) GetType() string

func (*ServiceType) GetVersions

func (x *ServiceType) GetVersions() []*ServiceVersion

func (*ServiceType) ProtoMessage

func (*ServiceType) ProtoMessage()

func (*ServiceType) ProtoReflect

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

func (*ServiceType) Reset

func (x *ServiceType) Reset()

func (*ServiceType) String

func (x *ServiceType) String() string

type ServiceVersion

type ServiceVersion struct {
	ID           string               `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Version      string               `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"`
	Description  string               `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"`
	Configs      []*ServiceConfig     `protobuf:"bytes,4,rep,name=Configs,proto3" json:"Configs,omitempty"`
	DownloadURL  string               `protobuf:"bytes,5,opt,name=DownloadURL,proto3" json:"DownloadURL,omitempty"`   //if service has download url
	Dependencies []*ServiceDependency `protobuf:"bytes,6,rep,name=Dependencies,proto3" json:"Dependencies,omitempty"` //list of service-dependencies for this service version
	// contains filtered or unexported fields
}

func (*ServiceVersion) Descriptor deprecated

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

Deprecated: Use ServiceVersion.ProtoReflect.Descriptor instead.

func (*ServiceVersion) GetConfigs

func (x *ServiceVersion) GetConfigs() []*ServiceConfig

func (*ServiceVersion) GetDependencies

func (x *ServiceVersion) GetDependencies() []*ServiceDependency

func (*ServiceVersion) GetDescription

func (x *ServiceVersion) GetDescription() string

func (*ServiceVersion) GetDownloadURL

func (x *ServiceVersion) GetDownloadURL() string

func (*ServiceVersion) GetID

func (x *ServiceVersion) GetID() string

func (*ServiceVersion) GetVersion

func (x *ServiceVersion) GetVersion() string

func (*ServiceVersion) ProtoMessage

func (*ServiceVersion) ProtoMessage()

func (*ServiceVersion) ProtoReflect

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

func (*ServiceVersion) Reset

func (x *ServiceVersion) Reset()

func (*ServiceVersion) String

func (x *ServiceVersion) String() string

type TaskStatus

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

func (*TaskStatus) Descriptor deprecated

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

Deprecated: Use TaskStatus.ProtoReflect.Descriptor instead.

func (*TaskStatus) GetStatus

func (x *TaskStatus) GetStatus() string

func (*TaskStatus) ProtoMessage

func (*TaskStatus) ProtoMessage()

func (*TaskStatus) ProtoReflect

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

func (*TaskStatus) Reset

func (x *TaskStatus) Reset()

func (*TaskStatus) String

func (x *TaskStatus) String() string

type Template

type Template struct {
	ID          string     `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	ProjectID   string     `protobuf:"bytes,2,opt,name=ProjectID,proto3" json:"ProjectID,omitempty"`
	Name        string     `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
	DisplayName string     `protobuf:"bytes,4,opt,name=DisplayName,proto3" json:"DisplayName,omitempty"`
	Services    []*Service `protobuf:"bytes,5,rep,name=Services,proto3" json:"Services,omitempty"`
	NHosts      int32      `protobuf:"varint,6,opt,name=NHosts,proto3" json:"NHosts,omitempty"`
	Description string     `protobuf:"bytes,7,opt,name=Description,proto3" json:"Description,omitempty"`
	// contains filtered or unexported fields
}

func (*Template) Descriptor deprecated

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

Deprecated: Use Template.ProtoReflect.Descriptor instead.

func (*Template) GetDescription

func (x *Template) GetDescription() string

func (*Template) GetDisplayName

func (x *Template) GetDisplayName() string

func (*Template) GetID

func (x *Template) GetID() string

func (*Template) GetNHosts

func (x *Template) GetNHosts() int32

func (*Template) GetName

func (x *Template) GetName() string

func (*Template) GetProjectID

func (x *Template) GetProjectID() string

func (*Template) GetServices

func (x *Template) GetServices() []*Service

func (*Template) ProtoMessage

func (*Template) ProtoMessage()

func (*Template) ProtoReflect

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

func (*Template) Reset

func (x *Template) Reset()

func (*Template) String

func (x *Template) String() string

type UnimplementedAnsibleRunnerServer

type UnimplementedAnsibleRunnerServer struct {
}

UnimplementedAnsibleRunnerServer can be embedded to have forward compatible implementations.

func (*UnimplementedAnsibleRunnerServer) Create

func (*UnimplementedAnsibleRunnerServer) Delete

func (*UnimplementedAnsibleRunnerServer) GetMasterIP

func (*UnimplementedAnsibleRunnerServer) Update

Jump to

Keyboard shortcuts

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