hambone

package
v0.0.0-...-dd9b6ef Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package hambone is a generated protocol buffer package.

It is generated from these files:

hambone.proto

It has these top-level messages:

Instance
InstanceList
Status
DeploymentStatus
GetOptions
File
Empty

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterInstancesServer

func RegisterInstancesServer(s *grpc.Server, srv InstancesServer)

Types

type DeploymentStatus

type DeploymentStatus struct {
	Name      string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Desired   int32  `protobuf:"varint,2,opt,name=desired" json:"desired,omitempty"`
	Current   int32  `protobuf:"varint,3,opt,name=current" json:"current,omitempty"`
	UpToDate  int32  `protobuf:"varint,4,opt,name=up_to_date,json=upToDate" json:"up_to_date,omitempty"`
	Available int32  `protobuf:"varint,5,opt,name=available" json:"available,omitempty"`
}

func (*DeploymentStatus) Descriptor

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

func (*DeploymentStatus) GetAvailable

func (m *DeploymentStatus) GetAvailable() int32

func (*DeploymentStatus) GetCurrent

func (m *DeploymentStatus) GetCurrent() int32

func (*DeploymentStatus) GetDesired

func (m *DeploymentStatus) GetDesired() int32

func (*DeploymentStatus) GetName

func (m *DeploymentStatus) GetName() string

func (*DeploymentStatus) GetUpToDate

func (m *DeploymentStatus) GetUpToDate() int32

func (*DeploymentStatus) ProtoMessage

func (*DeploymentStatus) ProtoMessage()

func (*DeploymentStatus) Reset

func (m *DeploymentStatus) Reset()

func (*DeploymentStatus) String

func (m *DeploymentStatus) String() string

type Empty

type Empty struct {
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type File

type File struct {
	Name      string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Directory string `protobuf:"bytes,2,opt,name=directory" json:"directory,omitempty"`
	Contents  string `protobuf:"bytes,3,opt,name=contents" json:"contents,omitempty"`
}

func (*File) Descriptor

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

func (*File) GetContents

func (m *File) GetContents() string

func (*File) GetDirectory

func (m *File) GetDirectory() string

func (*File) GetName

func (m *File) GetName() string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) Reset

func (m *File) Reset()

func (*File) String

func (m *File) String() string

type GetOptions

type GetOptions struct {
	Name            string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Start           int32  `protobuf:"varint,2,opt,name=start" json:"start,omitempty"`
	Stop            int32  `protobuf:"varint,3,opt,name=stop" json:"stop,omitempty"`
	ExcludeStatuses bool   `protobuf:"varint,4,opt,name=exclude_statuses,json=excludeStatuses" json:"exclude_statuses,omitempty"`
}

func (*GetOptions) Descriptor

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

func (*GetOptions) GetExcludeStatuses

func (m *GetOptions) GetExcludeStatuses() bool

func (*GetOptions) GetName

func (m *GetOptions) GetName() string

func (*GetOptions) GetStart

func (m *GetOptions) GetStart() int32

func (*GetOptions) GetStop

func (m *GetOptions) GetStop() int32

func (*GetOptions) ProtoMessage

func (*GetOptions) ProtoMessage()

func (*GetOptions) Reset

func (m *GetOptions) Reset()

func (*GetOptions) String

func (m *GetOptions) String() string

type Instance

type Instance struct {
	Name                 string    `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	KustomizationYaml    string    `protobuf:"bytes,2,opt,name=kustomization_yaml,json=kustomizationYaml" json:"kustomization_yaml,omitempty"`
	Statuses             []*Status `protobuf:"bytes,3,rep,name=statuses" json:"statuses,omitempty"`
	StatusesErrorMessage string    `protobuf:"bytes,4,opt,name=statuses_error_message,json=statusesErrorMessage" json:"statuses_error_message,omitempty"`
	OldInstance          *Instance `protobuf:"bytes,5,opt,name=old_instance,json=oldInstance" json:"old_instance,omitempty"`
	Files                []*File   `protobuf:"bytes,6,rep,name=files" json:"files,omitempty"`
}

func (*Instance) Descriptor

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

func (*Instance) GetFiles

func (m *Instance) GetFiles() []*File

func (*Instance) GetKustomizationYaml

func (m *Instance) GetKustomizationYaml() string

func (*Instance) GetName

func (m *Instance) GetName() string

func (*Instance) GetOldInstance

func (m *Instance) GetOldInstance() *Instance

func (*Instance) GetStatuses

func (m *Instance) GetStatuses() []*Status

func (*Instance) GetStatusesErrorMessage

func (m *Instance) GetStatusesErrorMessage() string

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) Reset

func (m *Instance) Reset()

func (*Instance) String

func (m *Instance) String() string

type InstanceList

type InstanceList struct {
	Instances []*Instance `protobuf:"bytes,1,rep,name=instances" json:"instances,omitempty"`
}

func (*InstanceList) Descriptor

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

func (*InstanceList) GetInstances

func (m *InstanceList) GetInstances() []*Instance

func (*InstanceList) ProtoMessage

func (*InstanceList) ProtoMessage()

func (*InstanceList) Reset

func (m *InstanceList) Reset()

func (*InstanceList) String

func (m *InstanceList) String() string

type InstancesClient

type InstancesClient interface {
	Apply(ctx context.Context, in *Instance, opts ...grpc.CallOption) (*Instance, error)
	Get(ctx context.Context, in *GetOptions, opts ...grpc.CallOption) (*InstanceList, error)
	Delete(ctx context.Context, in *Instance, opts ...grpc.CallOption) (*Instance, error)
	GetTemplates(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*InstanceList, error)
}

func NewInstancesClient

func NewInstancesClient(cc *grpc.ClientConn) InstancesClient

type InstancesServer

type InstancesServer interface {
	Apply(context.Context, *Instance) (*Instance, error)
	Get(context.Context, *GetOptions) (*InstanceList, error)
	Delete(context.Context, *Instance) (*Instance, error)
	GetTemplates(context.Context, *Empty) (*InstanceList, error)
}

type Status

type Status struct {
	// Types that are valid to be assigned to Item:
	//	*Status_Deployment
	Item isStatus_Item `protobuf_oneof:"item"`
}

func (*Status) Descriptor

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

func (*Status) GetDeployment

func (m *Status) GetDeployment() *DeploymentStatus

func (*Status) GetItem

func (m *Status) GetItem() isStatus_Item

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) String

func (m *Status) String() string

func (*Status) XXX_OneofFuncs

func (*Status) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type Status_Deployment

type Status_Deployment struct {
	Deployment *DeploymentStatus `protobuf:"bytes,1,opt,name=deployment,oneof"`
}

Jump to

Keyboard shortcuts

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