grpc

package
v0.0.0-...-b9c19b3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EMPTY_BODY   = 0
	ERROR_NUM    = -1
	WAITING_TIME = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcClient

type GrpcClient struct {
	Db database.Database
	// contains filtered or unexported fields
}

func (*GrpcClient) SetConnection

func (gc *GrpcClient) SetConnection(ansibleServiceAddr string)

SetConnection will set connection with both of ansible and db services

func (*GrpcClient) SetLogger

func (gc *GrpcClient) SetLogger(l *log.Logger)

func (GrpcClient) StartClusterCreation

func (gc GrpcClient) StartClusterCreation(c *protobuf.Cluster)

StartClusterCreation will send cluster struct to ansible-service for run ansible

func (GrpcClient) StartClusterDestroying

func (gc GrpcClient) StartClusterDestroying(c *protobuf.Cluster)

StartClusterDestroying will send cluster struct to ansible-service for run ansible delete

func (GrpcClient) StartClusterModification

func (gc GrpcClient) StartClusterModification(c *protobuf.Cluster)

StartClusterDestroying will send cluster struct to ansible-service for run ansible delete

Jump to

Keyboard shortcuts

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