v1alpha1

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceStatus_name = map[int32]string{
	0: "UNKNOWN",
	1: "STOPPED",
	2: "START_PENDING",
	3: "STOP_PENDING",
	4: "RUNNING",
	5: "CONTINUE_PENDING",
	6: "PAUSE_PENDING",
	7: "PAUSED",
}
View Source
var ServiceStatus_value = map[string]int32{
	"UNKNOWN":          0,
	"STOPPED":          1,
	"START_PENDING":    2,
	"STOP_PENDING":     3,
	"RUNNING":          4,
	"CONTINUE_PENDING": 5,
	"PAUSE_PENDING":    6,
	"PAUSED":           7,
}
View Source
var StartType_name = map[int32]string{
	0: "BOOT",
	1: "SYSTEM",
	2: "AUTOMATIC",
	3: "MANUAL",
	4: "DISABLED",
}
View Source
var StartType_value = map[string]int32{
	"BOOT":      0,
	"SYSTEM":    1,
	"AUTOMATIC": 2,
	"MANUAL":    3,
	"DISABLED":  4,
}

Functions

func RegisterSystemServer

func RegisterSystemServer(s *grpc.Server, srv SystemServer)

Types

type GetBIOSSerialNumberRequest

type GetBIOSSerialNumberRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetBIOSSerialNumberRequest) Descriptor

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

func (*GetBIOSSerialNumberRequest) ProtoMessage

func (*GetBIOSSerialNumberRequest) ProtoMessage()

func (*GetBIOSSerialNumberRequest) Reset

func (m *GetBIOSSerialNumberRequest) Reset()

func (*GetBIOSSerialNumberRequest) String

func (m *GetBIOSSerialNumberRequest) String() string

func (*GetBIOSSerialNumberRequest) XXX_DiscardUnknown

func (m *GetBIOSSerialNumberRequest) XXX_DiscardUnknown()

func (*GetBIOSSerialNumberRequest) XXX_Marshal

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

func (*GetBIOSSerialNumberRequest) XXX_Merge

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

func (*GetBIOSSerialNumberRequest) XXX_Size

func (m *GetBIOSSerialNumberRequest) XXX_Size() int

func (*GetBIOSSerialNumberRequest) XXX_Unmarshal

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

type GetBIOSSerialNumberResponse

type GetBIOSSerialNumberResponse struct {
	// Serial number
	SerialNumber         string   `protobuf:"bytes,1,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetBIOSSerialNumberResponse) Descriptor

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

func (*GetBIOSSerialNumberResponse) GetSerialNumber

func (m *GetBIOSSerialNumberResponse) GetSerialNumber() string

func (*GetBIOSSerialNumberResponse) ProtoMessage

func (*GetBIOSSerialNumberResponse) ProtoMessage()

func (*GetBIOSSerialNumberResponse) Reset

func (m *GetBIOSSerialNumberResponse) Reset()

func (*GetBIOSSerialNumberResponse) String

func (m *GetBIOSSerialNumberResponse) String() string

func (*GetBIOSSerialNumberResponse) XXX_DiscardUnknown

func (m *GetBIOSSerialNumberResponse) XXX_DiscardUnknown()

func (*GetBIOSSerialNumberResponse) XXX_Marshal

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

func (*GetBIOSSerialNumberResponse) XXX_Merge

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

func (*GetBIOSSerialNumberResponse) XXX_Size

func (m *GetBIOSSerialNumberResponse) XXX_Size() int

func (*GetBIOSSerialNumberResponse) XXX_Unmarshal

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

type GetServiceRequest

type GetServiceRequest struct {
	// Service name (as listed in System\CCS\Services keys)
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetServiceRequest) Descriptor

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

func (*GetServiceRequest) GetName

func (m *GetServiceRequest) GetName() string

func (*GetServiceRequest) ProtoMessage

func (*GetServiceRequest) ProtoMessage()

func (*GetServiceRequest) Reset

func (m *GetServiceRequest) Reset()

func (*GetServiceRequest) String

func (m *GetServiceRequest) String() string

func (*GetServiceRequest) XXX_DiscardUnknown

func (m *GetServiceRequest) XXX_DiscardUnknown()

func (*GetServiceRequest) XXX_Marshal

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

func (*GetServiceRequest) XXX_Merge

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

func (*GetServiceRequest) XXX_Size

func (m *GetServiceRequest) XXX_Size() int

func (*GetServiceRequest) XXX_Unmarshal

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

type GetServiceResponse

type GetServiceResponse struct {
	// Service display name
	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Service start type.
	// Used to control whether a service will start on boot, and if so on which
	// boot phase.
	StartType StartType `protobuf:"varint,2,opt,name=start_type,json=startType,proto3,enum=v1alpha1.StartType" json:"start_type,omitempty"`
	// Service status, e.g. stopped, running, paused
	Status               ServiceStatus `protobuf:"varint,3,opt,name=status,proto3,enum=v1alpha1.ServiceStatus" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*GetServiceResponse) Descriptor

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

func (*GetServiceResponse) GetDisplayName

func (m *GetServiceResponse) GetDisplayName() string

func (*GetServiceResponse) GetStartType

func (m *GetServiceResponse) GetStartType() StartType

func (*GetServiceResponse) GetStatus

func (m *GetServiceResponse) GetStatus() ServiceStatus

func (*GetServiceResponse) ProtoMessage

func (*GetServiceResponse) ProtoMessage()

func (*GetServiceResponse) Reset

func (m *GetServiceResponse) Reset()

func (*GetServiceResponse) String

func (m *GetServiceResponse) String() string

func (*GetServiceResponse) XXX_DiscardUnknown

func (m *GetServiceResponse) XXX_DiscardUnknown()

func (*GetServiceResponse) XXX_Marshal

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

func (*GetServiceResponse) XXX_Merge

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

func (*GetServiceResponse) XXX_Size

func (m *GetServiceResponse) XXX_Size() int

func (*GetServiceResponse) XXX_Unmarshal

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

type ServiceStatus

type ServiceStatus int32

https://docs.microsoft.com/en-us/windows/win32/api/winsvc/ns-winsvc-service_status#members

const (
	ServiceStatus_UNKNOWN          ServiceStatus = 0
	ServiceStatus_STOPPED          ServiceStatus = 1
	ServiceStatus_START_PENDING    ServiceStatus = 2
	ServiceStatus_STOP_PENDING     ServiceStatus = 3
	ServiceStatus_RUNNING          ServiceStatus = 4
	ServiceStatus_CONTINUE_PENDING ServiceStatus = 5
	ServiceStatus_PAUSE_PENDING    ServiceStatus = 6
	ServiceStatus_PAUSED           ServiceStatus = 7
)

func (ServiceStatus) EnumDescriptor

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

func (ServiceStatus) String

func (x ServiceStatus) String() string

type StartServiceRequest

type StartServiceRequest struct {
	// Service name (as listed in System\CCS\Services keys)
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StartServiceRequest) Descriptor

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

func (*StartServiceRequest) GetName

func (m *StartServiceRequest) GetName() string

func (*StartServiceRequest) ProtoMessage

func (*StartServiceRequest) ProtoMessage()

func (*StartServiceRequest) Reset

func (m *StartServiceRequest) Reset()

func (*StartServiceRequest) String

func (m *StartServiceRequest) String() string

func (*StartServiceRequest) XXX_DiscardUnknown

func (m *StartServiceRequest) XXX_DiscardUnknown()

func (*StartServiceRequest) XXX_Marshal

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

func (*StartServiceRequest) XXX_Merge

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

func (*StartServiceRequest) XXX_Size

func (m *StartServiceRequest) XXX_Size() int

func (*StartServiceRequest) XXX_Unmarshal

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

type StartServiceResponse

type StartServiceResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StartServiceResponse) Descriptor

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

func (*StartServiceResponse) ProtoMessage

func (*StartServiceResponse) ProtoMessage()

func (*StartServiceResponse) Reset

func (m *StartServiceResponse) Reset()

func (*StartServiceResponse) String

func (m *StartServiceResponse) String() string

func (*StartServiceResponse) XXX_DiscardUnknown

func (m *StartServiceResponse) XXX_DiscardUnknown()

func (*StartServiceResponse) XXX_Marshal

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

func (*StartServiceResponse) XXX_Merge

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

func (*StartServiceResponse) XXX_Size

func (m *StartServiceResponse) XXX_Size() int

func (*StartServiceResponse) XXX_Unmarshal

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

type StartType

type StartType int32

https://docs.microsoft.com/en-us/windows/win32/api/winsvc/nf-winsvc-changeserviceconfiga

const (
	StartType_BOOT      StartType = 0
	StartType_SYSTEM    StartType = 1
	StartType_AUTOMATIC StartType = 2
	StartType_MANUAL    StartType = 3
	StartType_DISABLED  StartType = 4
)

func (StartType) EnumDescriptor

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

func (StartType) String

func (x StartType) String() string

type StopServiceRequest

type StopServiceRequest struct {
	// Service name (as listed in System\CCS\Services keys)
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Forces stopping of services that has dependent services
	Force                bool     `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StopServiceRequest) Descriptor

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

func (*StopServiceRequest) GetForce

func (m *StopServiceRequest) GetForce() bool

func (*StopServiceRequest) GetName

func (m *StopServiceRequest) GetName() string

func (*StopServiceRequest) ProtoMessage

func (*StopServiceRequest) ProtoMessage()

func (*StopServiceRequest) Reset

func (m *StopServiceRequest) Reset()

func (*StopServiceRequest) String

func (m *StopServiceRequest) String() string

func (*StopServiceRequest) XXX_DiscardUnknown

func (m *StopServiceRequest) XXX_DiscardUnknown()

func (*StopServiceRequest) XXX_Marshal

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

func (*StopServiceRequest) XXX_Merge

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

func (*StopServiceRequest) XXX_Size

func (m *StopServiceRequest) XXX_Size() int

func (*StopServiceRequest) XXX_Unmarshal

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

type StopServiceResponse

type StopServiceResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StopServiceResponse) Descriptor

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

func (*StopServiceResponse) ProtoMessage

func (*StopServiceResponse) ProtoMessage()

func (*StopServiceResponse) Reset

func (m *StopServiceResponse) Reset()

func (*StopServiceResponse) String

func (m *StopServiceResponse) String() string

func (*StopServiceResponse) XXX_DiscardUnknown

func (m *StopServiceResponse) XXX_DiscardUnknown()

func (*StopServiceResponse) XXX_Marshal

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

func (*StopServiceResponse) XXX_Merge

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

func (*StopServiceResponse) XXX_Size

func (m *StopServiceResponse) XXX_Size() int

func (*StopServiceResponse) XXX_Unmarshal

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

type SystemClient

type SystemClient interface {
	// GetBIOSSerialNumber returns the device's serial number
	GetBIOSSerialNumber(ctx context.Context, in *GetBIOSSerialNumberRequest, opts ...grpc.CallOption) (*GetBIOSSerialNumberResponse, error)
	// StartService starts a Windows service
	// NOTE: This method affects global node state and should only be used
	//       with consideration to other CSI drivers that run concurrently.
	StartService(ctx context.Context, in *StartServiceRequest, opts ...grpc.CallOption) (*StartServiceResponse, error)
	// StopService stops a Windows service
	// NOTE: This method affects global node state and should only be used
	//       with consideration to other CSI drivers that run concurrently.
	StopService(ctx context.Context, in *StopServiceRequest, opts ...grpc.CallOption) (*StopServiceResponse, error)
	// GetService queries a Windows service state
	GetService(ctx context.Context, in *GetServiceRequest, opts ...grpc.CallOption) (*GetServiceResponse, error)
}

SystemClient is the client API for System service.

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

func NewSystemClient

func NewSystemClient(cc grpc.ClientConnInterface) SystemClient

type SystemServer

type SystemServer interface {
	// GetBIOSSerialNumber returns the device's serial number
	GetBIOSSerialNumber(context.Context, *GetBIOSSerialNumberRequest) (*GetBIOSSerialNumberResponse, error)
	// StartService starts a Windows service
	// NOTE: This method affects global node state and should only be used
	//       with consideration to other CSI drivers that run concurrently.
	StartService(context.Context, *StartServiceRequest) (*StartServiceResponse, error)
	// StopService stops a Windows service
	// NOTE: This method affects global node state and should only be used
	//       with consideration to other CSI drivers that run concurrently.
	StopService(context.Context, *StopServiceRequest) (*StopServiceResponse, error)
	// GetService queries a Windows service state
	GetService(context.Context, *GetServiceRequest) (*GetServiceResponse, error)
}

SystemServer is the server API for System service.

type UnimplementedSystemServer

type UnimplementedSystemServer struct {
}

UnimplementedSystemServer can be embedded to have forward compatible implementations.

func (*UnimplementedSystemServer) GetBIOSSerialNumber

func (*UnimplementedSystemServer) GetService

func (*UnimplementedSystemServer) StartService

func (*UnimplementedSystemServer) StopService

Jump to

Keyboard shortcuts

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