icontainercontrol2

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IContainerControl2 interface identifier 6c935649-30a6-4211-8687-c4c83e5fe1c7
	ContainerControl2IID = &dcom.IID{Data1: 0x6c935649, Data2: 0x30a6, Data3: 0x4211, Data4: []byte{0x86, 0x87, 0xc4, 0xc8, 0x3e, 0x5f, 0xe1, 0xc7}}
	// Syntax UUID
	ContainerControl2SyntaxUUID = &uuid.UUID{TimeLow: 0x6c935649, TimeMid: 0x30a6, TimeHiAndVersion: 0x4211, ClockSeqHiAndReserved: 0x86, ClockSeqLow: 0x87, Node: [6]uint8{0xc4, 0xc8, 0x3e, 0x5f, 0xe1, 0xc7}}
	// Syntax ID
	ContainerControl2SyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: ContainerControl2SyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "dcom/coma"
)

Functions

func ContainerControl2ServerHandle

func ContainerControl2ServerHandle(ctx context.Context, o ContainerControl2Server, opNum int, r ndr.Reader) (dcerpc.Operation, error)

func NewContainerControl2ServerHandle

func NewContainerControl2ServerHandle(o ContainerControl2Server) dcerpc.ServerHandle

func RegisterContainerControl2Server

func RegisterContainerControl2Server(conn dcerpc.Conn, o ContainerControl2Server, opts ...dcerpc.Option)

Types

type ContainerControl2Client

type ContainerControl2Client interface {

	// IUnknown retrieval method.
	Unknown() iunknown.UnknownClient

	// This method is called by a client to shut down an instance container.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	ShutdownContainer(context.Context, *ShutdownContainerRequest, ...dcerpc.CallOption) (*ShutdownContainerResponse, error)

	// This method is called by a client to pause an instance container.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	PauseContainer(context.Context, *PauseContainerRequest, ...dcerpc.CallOption) (*PauseContainerResponse, error)

	// This method is called by a client to resume a paused instance container.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	ResumeContainer(context.Context, *ResumeContainerRequest, ...dcerpc.CallOption) (*ResumeContainerResponse, error)

	// This method is called by a client to determine if an instance container is paused.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	IsContainerPaused(context.Context, *IsContainerPausedRequest, ...dcerpc.CallOption) (*IsContainerPausedResponse, error)

	// This method is called by a client to get a list of instance containers for a conglomeration,
	// or to get a list of all running instance containers.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	GetRunningContainers(context.Context, *GetRunningContainersRequest, ...dcerpc.CallOption) (*GetRunningContainersResponse, error)

	// This method is called by a client to find the instance container for a process ID.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	GetContainerIDFromProcessID(context.Context, *GetContainerIDFromProcessIDRequest, ...dcerpc.CallOption) (*GetContainerIDFromProcessIDResponse, error)

	// This method is called by a client to recycle an instance container.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	RecycleContainer(context.Context, *RecycleContainerRequest, ...dcerpc.CallOption) (*RecycleContainerResponse, error)

	// This method is called by a client to find the container identifier for the single
	// instance container for a conglomeration.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	GetContainerIDFromConglomerationID(context.Context, *GetContainerIDFromConglomerationIDRequest, ...dcerpc.CallOption) (*GetContainerIDFromConglomerationIDResponse, error)

	// AlterContext alters the client context.
	AlterContext(context.Context, ...dcerpc.Option) error

	// Conn returns the client connection (unsafe)
	Conn() dcerpc.Conn

	// IPID sets the object interface identifier.
	IPID(context.Context, *dcom.IPID) ContainerControl2Client
}

IContainerControl2 interface.

func NewContainerControl2Client

func NewContainerControl2Client(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (ContainerControl2Client, error)

type ContainerControl2Server

type ContainerControl2Server interface {

	// IUnknown base class.
	iunknown.UnknownServer

	// This method is called by a client to shut down an instance container.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	ShutdownContainer(context.Context, *ShutdownContainerRequest) (*ShutdownContainerResponse, error)

	// This method is called by a client to pause an instance container.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	PauseContainer(context.Context, *PauseContainerRequest) (*PauseContainerResponse, error)

	// This method is called by a client to resume a paused instance container.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	ResumeContainer(context.Context, *ResumeContainerRequest) (*ResumeContainerResponse, error)

	// This method is called by a client to determine if an instance container is paused.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	IsContainerPaused(context.Context, *IsContainerPausedRequest) (*IsContainerPausedResponse, error)

	// This method is called by a client to get a list of instance containers for a conglomeration,
	// or to get a list of all running instance containers.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	GetRunningContainers(context.Context, *GetRunningContainersRequest) (*GetRunningContainersResponse, error)

	// This method is called by a client to find the instance container for a process ID.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	GetContainerIDFromProcessID(context.Context, *GetContainerIDFromProcessIDRequest) (*GetContainerIDFromProcessIDResponse, error)

	// This method is called by a client to recycle an instance container.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	RecycleContainer(context.Context, *RecycleContainerRequest) (*RecycleContainerResponse, error)

	// This method is called by a client to find the container identifier for the single
	// instance container for a conglomeration.
	//
	// Return Values: This method MUST return S_OK (0x00000000) on success, and a failure
	// result, as specified in [MS-ERREF] section 2.1, on failure. All failure results MUST
	// be treated identically.
	GetContainerIDFromConglomerationID(context.Context, *GetContainerIDFromConglomerationIDRequest) (*GetContainerIDFromConglomerationIDResponse, error)
}

IContainerControl2 server interface.

type GetContainerIDFromConglomerationIDRequest

type GetContainerIDFromConglomerationIDRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// ConglomerationIdentifier: The conglomeration identifier of a conglomeration.
	ConglomerationID *dtyp.GUID `idl:"name:ConglomerationIdentifier" json:"conglomeration_id"`
}

GetContainerIDFromConglomerationIDRequest structure represents the GetContainerIDFromConglomerationID operation request

func (*GetContainerIDFromConglomerationIDRequest) MarshalNDR

func (*GetContainerIDFromConglomerationIDRequest) UnmarshalNDR

type GetContainerIDFromConglomerationIDResponse

type GetContainerIDFromConglomerationIDResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// ContainerIdentifier: A pointer to a variable that, upon successful completion, MUST
	// be set to the container identifier of the single instance container for the conglomeration
	// specified in ConglomerationIdentifier.
	ContainerID *dtyp.GUID `idl:"name:ContainerIdentifier" json:"container_id"`
	// Return: The GetContainerIDFromConglomerationID return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetContainerIDFromConglomerationIDResponse structure represents the GetContainerIDFromConglomerationID operation response

func (*GetContainerIDFromConglomerationIDResponse) MarshalNDR

func (*GetContainerIDFromConglomerationIDResponse) UnmarshalNDR

type GetContainerIDFromProcessIDRequest

type GetContainerIDFromProcessIDRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// dwPID: The ProcessIdentifier (see section 3.1.1.3.21) of an instance container.
	PID uint32 `idl:"name:dwPID" json:"pid"`
}

GetContainerIDFromProcessIDRequest structure represents the GetContainerIDFromProcessID operation request

func (*GetContainerIDFromProcessIDRequest) MarshalNDR

func (*GetContainerIDFromProcessIDRequest) UnmarshalNDR

type GetContainerIDFromProcessIDResponse

type GetContainerIDFromProcessIDResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pbstrContainerID: A pointer to a value that, upon successful completion, MUST be
	// set to the Curly Braced GUID String Syntax ([MS-DTYP] section 2.3.4.3) representation
	// of the container identifier of an instance container.
	ContainerID *oaut.String `idl:"name:pbstrContainerID" json:"container_id"`
	// Return: The GetContainerIDFromProcessID return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetContainerIDFromProcessIDResponse structure represents the GetContainerIDFromProcessID operation response

func (*GetContainerIDFromProcessIDResponse) MarshalNDR

func (*GetContainerIDFromProcessIDResponse) UnmarshalNDR

type GetRunningContainersRequest

type GetRunningContainersRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// PartitionId: The partition identifier of a partition.
	PartitionID *dtyp.GUID `idl:"name:PartitionId" json:"partition_id"`
	// ConglomerationId: The conglomeration identifier of a conglomeration, or GUID_NULL
	// for all instance containers.
	ConglomerationID *dtyp.GUID `idl:"name:ConglomerationId" json:"conglomeration_id"`
}

GetRunningContainersRequest structure represents the GetRunningContainers operation request

func (*GetRunningContainersRequest) MarshalNDR

func (*GetRunningContainersRequest) UnmarshalNDR

func (o *GetRunningContainersRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type GetRunningContainersResponse

type GetRunningContainersResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// pdwNumContainers: A pointer to a variable that, upon successful completion, MUST
	// be set to the number of elements in ppContainers.
	ContainersLength uint32 `idl:"name:pdwNumContainers" json:"containers_length"`
	// ppContainers: An array of InstanceContainer (section 2.2.9) structures, each of which
	// represents an instance container for the conglomeration specified in ConglomerationId.
	Containers []*coma.InstanceContainer `idl:"name:ppContainers;size_is:(, pdwNumContainers)" json:"containers"`
	// Return: The GetRunningContainers return value.
	Return int32 `idl:"name:Return" json:"return"`
}

GetRunningContainersResponse structure represents the GetRunningContainers operation response

func (*GetRunningContainersResponse) MarshalNDR

func (*GetRunningContainersResponse) UnmarshalNDR

func (o *GetRunningContainersResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type IsContainerPausedRequest

type IsContainerPausedRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// ContainerIdentifier: The container identifier of an instance container.
	ContainerID *dtyp.GUID `idl:"name:ContainerIdentifier" json:"container_id"`
}

IsContainerPausedRequest structure represents the IsContainerPaused operation request

func (*IsContainerPausedRequest) MarshalNDR

func (o *IsContainerPausedRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*IsContainerPausedRequest) UnmarshalNDR

func (o *IsContainerPausedRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type IsContainerPausedResponse

type IsContainerPausedResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// bPaused: A pointer to a variable that, upon successful completion, MUST be set to
	// indicate whether or not the instance container is paused.
	Paused bool `idl:"name:bPaused" json:"paused"`
	// Return: The IsContainerPaused return value.
	Return int32 `idl:"name:Return" json:"return"`
}

IsContainerPausedResponse structure represents the IsContainerPaused operation response

func (*IsContainerPausedResponse) MarshalNDR

func (o *IsContainerPausedResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*IsContainerPausedResponse) UnmarshalNDR

func (o *IsContainerPausedResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type PauseContainerRequest

type PauseContainerRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// ContainerIdentifier: The container identifier of an instance container.
	ContainerID *dtyp.GUID `idl:"name:ContainerIdentifier" json:"container_id"`
}

PauseContainerRequest structure represents the PauseContainer operation request

func (*PauseContainerRequest) MarshalNDR

func (o *PauseContainerRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*PauseContainerRequest) UnmarshalNDR

func (o *PauseContainerRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type PauseContainerResponse

type PauseContainerResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The PauseContainer return value.
	Return int32 `idl:"name:Return" json:"return"`
}

PauseContainerResponse structure represents the PauseContainer operation response

func (*PauseContainerResponse) MarshalNDR

func (o *PauseContainerResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*PauseContainerResponse) UnmarshalNDR

func (o *PauseContainerResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type RecycleContainerRequest

type RecycleContainerRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// ContainerIdentifier: The container identifier of an instance container.
	ContainerID *dtyp.GUID `idl:"name:ContainerIdentifier" json:"container_id"`
	// lReasonCode: A value representing an application-specific informational reason code
	// for why the instance container is being recycled.
	ReasonCode int32 `idl:"name:lReasonCode" json:"reason_code"`
}

RecycleContainerRequest structure represents the RecycleContainer operation request

func (*RecycleContainerRequest) MarshalNDR

func (o *RecycleContainerRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*RecycleContainerRequest) UnmarshalNDR

func (o *RecycleContainerRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type RecycleContainerResponse

type RecycleContainerResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The RecycleContainer return value.
	Return int32 `idl:"name:Return" json:"return"`
}

RecycleContainerResponse structure represents the RecycleContainer operation response

func (*RecycleContainerResponse) MarshalNDR

func (o *RecycleContainerResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*RecycleContainerResponse) UnmarshalNDR

func (o *RecycleContainerResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ResumeContainerRequest

type ResumeContainerRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// ContainerIdentifier: The container identifier of an instance container.
	ContainerID *dtyp.GUID `idl:"name:ContainerIdentifier" json:"container_id"`
}

ResumeContainerRequest structure represents the ResumeContainer operation request

func (*ResumeContainerRequest) MarshalNDR

func (o *ResumeContainerRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ResumeContainerRequest) UnmarshalNDR

func (o *ResumeContainerRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ResumeContainerResponse

type ResumeContainerResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The ResumeContainer return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ResumeContainerResponse structure represents the ResumeContainer operation response

func (*ResumeContainerResponse) MarshalNDR

func (o *ResumeContainerResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ResumeContainerResponse) UnmarshalNDR

func (o *ResumeContainerResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShutdownContainerRequest

type ShutdownContainerRequest struct {
	// This: ORPCTHIS structure that is used to send ORPC extension data to the server.
	This *dcom.ORPCThis `idl:"name:This" json:"this"`
	// ContainerIdentifier: The container identifier of an instance container.
	ContainerID *dtyp.GUID `idl:"name:ContainerIdentifier" json:"container_id"`
}

ShutdownContainerRequest structure represents the ShutdownContainer operation request

func (*ShutdownContainerRequest) MarshalNDR

func (o *ShutdownContainerRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShutdownContainerRequest) UnmarshalNDR

func (o *ShutdownContainerRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type ShutdownContainerResponse

type ShutdownContainerResponse struct {
	// That: ORPCTHAT structure that is used to return ORPC extension data to the client.
	That *dcom.ORPCThat `idl:"name:That" json:"that"`
	// Return: The ShutdownContainer return value.
	Return int32 `idl:"name:Return" json:"return"`
}

ShutdownContainerResponse structure represents the ShutdownContainer operation response

func (*ShutdownContainerResponse) MarshalNDR

func (o *ShutdownContainerResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*ShutdownContainerResponse) UnmarshalNDR

func (o *ShutdownContainerResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type UnimplementedContainerControl2Server added in v1.1.5

type UnimplementedContainerControl2Server struct {
	iunknown.UnimplementedUnknownServer
}

Unimplemented IContainerControl2

func (UnimplementedContainerControl2Server) GetContainerIDFromConglomerationID added in v1.1.5

func (UnimplementedContainerControl2Server) GetContainerIDFromProcessID added in v1.1.5

func (UnimplementedContainerControl2Server) GetRunningContainers added in v1.1.5

func (UnimplementedContainerControl2Server) IsContainerPaused added in v1.1.5

func (UnimplementedContainerControl2Server) PauseContainer added in v1.1.5

func (UnimplementedContainerControl2Server) RecycleContainer added in v1.1.5

func (UnimplementedContainerControl2Server) ResumeContainer added in v1.1.5

func (UnimplementedContainerControl2Server) ShutdownContainer added in v1.1.5

Jump to

Keyboard shortcuts

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