wait

package
v0.0.0-...-60f4931 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBootWaiterServer

func RegisterBootWaiterServer(s *grpc.Server, srv BootWaiterServer)

Types

type BootWaiterClient

type BootWaiterClient interface {
	CheckReady(ctx context.Context, in *CheckReadyRequest, opts ...grpc.CallOption) (BootWaiter_CheckReadyClient, error)
}

BootWaiterClient is the client API for BootWaiter service.

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

func NewBootWaiterClient

func NewBootWaiterClient(cc grpc.ClientConnInterface) BootWaiterClient

type BootWaiterServer

type BootWaiterServer interface {
	CheckReady(*CheckReadyRequest, BootWaiter_CheckReadyServer) error
}

BootWaiterServer is the server API for BootWaiter service.

type BootWaiter_CheckReadyClient

type BootWaiter_CheckReadyClient interface {
	Recv() (*CheckReadyResponse, error)
	grpc.ClientStream
}

type BootWaiter_CheckReadyServer

type BootWaiter_CheckReadyServer interface {
	Send(*CheckReadyResponse) error
	grpc.ServerStream
}

type CheckReadyRequest

type CheckReadyRequest struct {
	Namespace            string    `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	WaitSpec             *WaitSpec `protobuf:"bytes,2,opt,name=wait_spec,json=waitSpec,proto3" json:"wait_spec,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*CheckReadyRequest) Descriptor

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

func (*CheckReadyRequest) GetNamespace

func (m *CheckReadyRequest) GetNamespace() string

func (*CheckReadyRequest) GetWaitSpec

func (m *CheckReadyRequest) GetWaitSpec() *WaitSpec

func (*CheckReadyRequest) ProtoMessage

func (*CheckReadyRequest) ProtoMessage()

func (*CheckReadyRequest) Reset

func (m *CheckReadyRequest) Reset()

func (*CheckReadyRequest) String

func (m *CheckReadyRequest) String() string

func (*CheckReadyRequest) XXX_DiscardUnknown

func (m *CheckReadyRequest) XXX_DiscardUnknown()

func (*CheckReadyRequest) XXX_Marshal

func (m *CheckReadyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckReadyRequest) XXX_Merge

func (m *CheckReadyRequest) XXX_Merge(src proto.Message)

func (*CheckReadyRequest) XXX_Size

func (m *CheckReadyRequest) XXX_Size() int

func (*CheckReadyRequest) XXX_Unmarshal

func (m *CheckReadyRequest) XXX_Unmarshal(b []byte) error

type CheckReadyResponse

type CheckReadyResponse struct {
	Error *errors.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	Ready bool          `protobuf:"varint,2,opt,name=ready,proto3" json:"ready,omitempty"`
	// An optional message providing more information on why the container
	// needs to wait.
	Reason               string   `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CheckReadyResponse) Descriptor

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

func (*CheckReadyResponse) GetError

func (m *CheckReadyResponse) GetError() *errors.Error

func (*CheckReadyResponse) GetReady

func (m *CheckReadyResponse) GetReady() bool

func (*CheckReadyResponse) GetReason

func (m *CheckReadyResponse) GetReason() string

func (*CheckReadyResponse) ProtoMessage

func (*CheckReadyResponse) ProtoMessage()

func (*CheckReadyResponse) Reset

func (m *CheckReadyResponse) Reset()

func (*CheckReadyResponse) String

func (m *CheckReadyResponse) String() string

func (*CheckReadyResponse) XXX_DiscardUnknown

func (m *CheckReadyResponse) XXX_DiscardUnknown()

func (*CheckReadyResponse) XXX_Marshal

func (m *CheckReadyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckReadyResponse) XXX_Merge

func (m *CheckReadyResponse) XXX_Merge(src proto.Message)

func (*CheckReadyResponse) XXX_Size

func (m *CheckReadyResponse) XXX_Size() int

func (*CheckReadyResponse) XXX_Unmarshal

func (m *CheckReadyResponse) XXX_Unmarshal(b []byte) error

type ServiceCondition

type ServiceCondition struct {
	Service              string   `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	Condition            string   `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ServiceCondition) Descriptor

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

func (*ServiceCondition) GetCondition

func (m *ServiceCondition) GetCondition() string

func (*ServiceCondition) GetService

func (m *ServiceCondition) GetService() string

func (*ServiceCondition) ProtoMessage

func (*ServiceCondition) ProtoMessage()

func (*ServiceCondition) Reset

func (m *ServiceCondition) Reset()

func (*ServiceCondition) String

func (m *ServiceCondition) String() string

func (*ServiceCondition) XXX_DiscardUnknown

func (m *ServiceCondition) XXX_DiscardUnknown()

func (*ServiceCondition) XXX_Marshal

func (m *ServiceCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceCondition) XXX_Merge

func (m *ServiceCondition) XXX_Merge(src proto.Message)

func (*ServiceCondition) XXX_Size

func (m *ServiceCondition) XXX_Size() int

func (*ServiceCondition) XXX_Unmarshal

func (m *ServiceCondition) XXX_Unmarshal(b []byte) error

type UnimplementedBootWaiterServer

type UnimplementedBootWaiterServer struct {
}

UnimplementedBootWaiterServer can be embedded to have forward compatible implementations.

func (*UnimplementedBootWaiterServer) CheckReady

type WaitSpec

type WaitSpec struct {
	// depends_on is a list of services that must be running or healthy
	// before the service can start.
	DependsOn []*ServiceCondition `protobuf:"bytes,1,rep,name=depends_on,json=dependsOn,proto3" json:"depends_on,omitempty"`
	// bind_volumes is a list of paths that must be fully synced before the
	// service can start.
	BindVolumes []string `protobuf:"bytes,2,rep,name=bind_volumes,json=bindVolumes,proto3" json:"bind_volumes,omitempty"`
	// finished_volume_init is a list of services that must have finished initializing
	// volumes before the service can start.
	FinishedVolumeInit   []string `protobuf:"bytes,3,rep,name=finished_volume_init,json=finishedVolumeInit,proto3" json:"finished_volume_init,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WaitSpec) Descriptor

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

func (*WaitSpec) GetBindVolumes

func (m *WaitSpec) GetBindVolumes() []string

func (*WaitSpec) GetDependsOn

func (m *WaitSpec) GetDependsOn() []*ServiceCondition

func (*WaitSpec) GetFinishedVolumeInit

func (m *WaitSpec) GetFinishedVolumeInit() []string

func (*WaitSpec) ProtoMessage

func (*WaitSpec) ProtoMessage()

func (*WaitSpec) Reset

func (m *WaitSpec) Reset()

func (*WaitSpec) String

func (m *WaitSpec) String() string

func (*WaitSpec) XXX_DiscardUnknown

func (m *WaitSpec) XXX_DiscardUnknown()

func (*WaitSpec) XXX_Marshal

func (m *WaitSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WaitSpec) XXX_Merge

func (m *WaitSpec) XXX_Merge(src proto.Message)

func (*WaitSpec) XXX_Size

func (m *WaitSpec) XXX_Size() int

func (*WaitSpec) XXX_Unmarshal

func (m *WaitSpec) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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