rpcv2

package
v0.0.0-...-db84b3d Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Code generated by go-xdr. DO NOT EDIT.

Index

Constants

View Source
const AcceptStatEncodedSizeBytes = 4
View Source
const AuthFlavorEncodedSizeBytes = 4
View Source
const AuthStatEncodedSizeBytes = 4
View Source
const MsgTypeEncodedSizeBytes = 4
View Source
const RejectStatEncodedSizeBytes = 4
View Source
const ReplyStatEncodedSizeBytes = 4

Variables

View Source
var AcceptStat_name = map[AcceptStat]string{
	4: "GARBAGE_ARGS",
	3: "PROC_UNAVAIL",
	2: "PROG_MISMATCH",
	1: "PROG_UNAVAIL",
	0: "SUCCESS",
	5: "SYSTEM_ERR",
}
View Source
var AuthFlavor_name = map[AuthFlavor]string{
	3: "AUTH_DH",
	0: "AUTH_NONE",
	2: "AUTH_SHORT",
	1: "AUTH_SYS",
	6: "RPCSEC_GSS",
}
View Source
var AuthStat_name = map[AuthStat]string{
	1:  "AUTH_BADCRED",
	3:  "AUTH_BADVERF",
	11: "AUTH_DECODE",
	7:  "AUTH_FAILED",
	6:  "AUTH_INVALIDRESP",
	8:  "AUTH_KERB_GENERIC",
	12: "AUTH_NET_ADDR",
	0:  "AUTH_OK",
	2:  "AUTH_REJECTEDCRED",
	4:  "AUTH_REJECTEDVERF",
	9:  "AUTH_TIMEEXPIRE",
	10: "AUTH_TKT_FILE",
	5:  "AUTH_TOOWEAK",
	13: "RPCSEC_GSS_CREDPROBLEM",
	14: "RPCSEC_GSS_CTXPROBLEM",
}
View Source
var MsgType_name = map[MsgType]string{
	0: "CALL",
	1: "REPLY",
}
View Source
var RejectStat_name = map[RejectStat]string{
	1: "AUTH_ERROR",
	0: "RPC_MISMATCH",
}
View Source
var ReplyStat_name = map[ReplyStat]string{
	0: "MSG_ACCEPTED",
	1: "MSG_DENIED",
}

Functions

This section is empty.

Types

type AcceptStat

type AcceptStat int32
const GARBAGE_ARGS AcceptStat = 4
const PROC_UNAVAIL AcceptStat = 3
const PROG_MISMATCH AcceptStat = 2
const PROG_UNAVAIL AcceptStat = 1
const SUCCESS AcceptStat = 0
const SYSTEM_ERR AcceptStat = 5

func (*AcceptStat) ReadFrom

func (mParent *AcceptStat) ReadFrom(r io.Reader) (nTotal int64, err error)

func (AcceptStat) WriteTo

func (m AcceptStat) WriteTo(w io.Writer) (nTotal int64, err error)

type AcceptedReply

type AcceptedReply struct {
	Verf      OpaqueAuth
	ReplyData AcceptedReplyData
}

func (*AcceptedReply) GetEncodedSizeBytes

func (m *AcceptedReply) GetEncodedSizeBytes() (nTotal int)

func (*AcceptedReply) ReadFrom

func (m *AcceptedReply) ReadFrom(r io.Reader) (nTotal int64, err error)

func (*AcceptedReply) WriteTo

func (m *AcceptedReply) WriteTo(w io.Writer) (nTotal int64, err error)

type AcceptedReplyData

type AcceptedReplyData interface {
	GetStat() AcceptStat
	io.WriterTo
	GetEncodedSizeBytes() int
	// contains filtered or unexported methods
}

func ReadAcceptedReplyData

func ReadAcceptedReplyData(r io.Reader) (m AcceptedReplyData, nTotal int64, err error)

type AcceptedReplyData_PROG_MISMATCH

type AcceptedReplyData_PROG_MISMATCH struct {
	MismatchInfo struct {
		Low  uint32
		High uint32
	}
}

func (*AcceptedReplyData_PROG_MISMATCH) GetEncodedSizeBytes

func (m *AcceptedReplyData_PROG_MISMATCH) GetEncodedSizeBytes() (nTotal int)

func (*AcceptedReplyData_PROG_MISMATCH) GetStat

func (*AcceptedReplyData_PROG_MISMATCH) WriteTo

func (m *AcceptedReplyData_PROG_MISMATCH) WriteTo(w io.Writer) (nTotal int64, err error)

type AcceptedReplyData_SUCCESS

type AcceptedReplyData_SUCCESS struct {
	Results [0]byte
}

func (*AcceptedReplyData_SUCCESS) GetEncodedSizeBytes

func (m *AcceptedReplyData_SUCCESS) GetEncodedSizeBytes() (nTotal int)

func (*AcceptedReplyData_SUCCESS) GetStat

func (*AcceptedReplyData_SUCCESS) WriteTo

func (m *AcceptedReplyData_SUCCESS) WriteTo(w io.Writer) (nTotal int64, err error)

type AcceptedReplyData_default

type AcceptedReplyData_default struct {
	Stat AcceptStat
}

func (*AcceptedReplyData_default) GetEncodedSizeBytes

func (m *AcceptedReplyData_default) GetEncodedSizeBytes() (nTotal int)

func (*AcceptedReplyData_default) GetStat

func (*AcceptedReplyData_default) WriteTo

func (m *AcceptedReplyData_default) WriteTo(w io.Writer) (nTotal int64, err error)

type AuthFlavor

type AuthFlavor int32
const AUTH_DH AuthFlavor = 3
const AUTH_NONE AuthFlavor = 0
const AUTH_SHORT AuthFlavor = 2
const AUTH_SYS AuthFlavor = 1
const RPCSEC_GSS AuthFlavor = 6

func (*AuthFlavor) ReadFrom

func (mParent *AuthFlavor) ReadFrom(r io.Reader) (nTotal int64, err error)

func (AuthFlavor) WriteTo

func (m AuthFlavor) WriteTo(w io.Writer) (nTotal int64, err error)

type AuthStat

type AuthStat int32
const AUTH_BADCRED AuthStat = 1
const AUTH_BADVERF AuthStat = 3
const AUTH_DECODE AuthStat = 11
const AUTH_FAILED AuthStat = 7
const AUTH_INVALIDRESP AuthStat = 6
const AUTH_KERB_GENERIC AuthStat = 8
const AUTH_NET_ADDR AuthStat = 12
const AUTH_OK AuthStat = 0
const AUTH_REJECTEDCRED AuthStat = 2
const AUTH_REJECTEDVERF AuthStat = 4
const AUTH_TIMEEXPIRE AuthStat = 9
const AUTH_TKT_FILE AuthStat = 10
const AUTH_TOOWEAK AuthStat = 5
const RPCSEC_GSS_CREDPROBLEM AuthStat = 13
const RPCSEC_GSS_CTXPROBLEM AuthStat = 14

func (*AuthStat) ReadFrom

func (mParent *AuthStat) ReadFrom(r io.Reader) (nTotal int64, err error)

func (AuthStat) WriteTo

func (m AuthStat) WriteTo(w io.Writer) (nTotal int64, err error)

type AuthsysParms

type AuthsysParms struct {
	Stamp       uint32
	Machinename string
	Uid         uint32
	Gid         uint32
	Gids        []uint32
}

func (*AuthsysParms) GetEncodedSizeBytes

func (m *AuthsysParms) GetEncodedSizeBytes() (nTotal int)

func (*AuthsysParms) ReadFrom

func (m *AuthsysParms) ReadFrom(r io.Reader) (nTotal int64, err error)

func (*AuthsysParms) WriteTo

func (m *AuthsysParms) WriteTo(w io.Writer) (nTotal int64, err error)

type CallBody

type CallBody struct {
	Rpcvers uint32
	Prog    uint32
	Vers    uint32
	Proc    uint32
	Cred    OpaqueAuth
	Verf    OpaqueAuth
}

func (*CallBody) GetEncodedSizeBytes

func (m *CallBody) GetEncodedSizeBytes() (nTotal int)

func (*CallBody) ReadFrom

func (m *CallBody) ReadFrom(r io.Reader) (nTotal int64, err error)

func (*CallBody) WriteTo

func (m *CallBody) WriteTo(w io.Writer) (nTotal int64, err error)

type MsgType

type MsgType int32
const CALL MsgType = 0
const REPLY MsgType = 1

func (*MsgType) ReadFrom

func (mParent *MsgType) ReadFrom(r io.Reader) (nTotal int64, err error)

func (MsgType) WriteTo

func (m MsgType) WriteTo(w io.Writer) (nTotal int64, err error)

type OpaqueAuth

type OpaqueAuth struct {
	Flavor AuthFlavor
	Body   []byte
}

func (*OpaqueAuth) GetEncodedSizeBytes

func (m *OpaqueAuth) GetEncodedSizeBytes() (nTotal int)

func (*OpaqueAuth) ReadFrom

func (m *OpaqueAuth) ReadFrom(r io.Reader) (nTotal int64, err error)

func (*OpaqueAuth) WriteTo

func (m *OpaqueAuth) WriteTo(w io.Writer) (nTotal int64, err error)

type RejectStat

type RejectStat int32
const AUTH_ERROR RejectStat = 1
const RPC_MISMATCH RejectStat = 0

func (*RejectStat) ReadFrom

func (mParent *RejectStat) ReadFrom(r io.Reader) (nTotal int64, err error)

func (RejectStat) WriteTo

func (m RejectStat) WriteTo(w io.Writer) (nTotal int64, err error)

type RejectedReply

type RejectedReply interface {
	GetStat() RejectStat
	io.WriterTo
	GetEncodedSizeBytes() int
	// contains filtered or unexported methods
}

func ReadRejectedReply

func ReadRejectedReply(r io.Reader) (m RejectedReply, nTotal int64, err error)

type RejectedReply_AUTH_ERROR

type RejectedReply_AUTH_ERROR struct {
	Stat AuthStat
}

func (*RejectedReply_AUTH_ERROR) GetEncodedSizeBytes

func (m *RejectedReply_AUTH_ERROR) GetEncodedSizeBytes() (nTotal int)

func (*RejectedReply_AUTH_ERROR) GetStat

func (m *RejectedReply_AUTH_ERROR) GetStat() RejectStat

func (*RejectedReply_AUTH_ERROR) WriteTo

func (m *RejectedReply_AUTH_ERROR) WriteTo(w io.Writer) (nTotal int64, err error)

type RejectedReply_RPC_MISMATCH

type RejectedReply_RPC_MISMATCH struct {
	MismatchInfo struct {
		Low  uint32
		High uint32
	}
}

func (*RejectedReply_RPC_MISMATCH) GetEncodedSizeBytes

func (m *RejectedReply_RPC_MISMATCH) GetEncodedSizeBytes() (nTotal int)

func (*RejectedReply_RPC_MISMATCH) GetStat

func (*RejectedReply_RPC_MISMATCH) WriteTo

func (m *RejectedReply_RPC_MISMATCH) WriteTo(w io.Writer) (nTotal int64, err error)

type ReplyBody

type ReplyBody interface {
	GetStat() ReplyStat
	io.WriterTo
	GetEncodedSizeBytes() int
	// contains filtered or unexported methods
}

func ReadReplyBody

func ReadReplyBody(r io.Reader) (m ReplyBody, nTotal int64, err error)

type ReplyBody_MSG_ACCEPTED

type ReplyBody_MSG_ACCEPTED struct {
	Areply AcceptedReply
}

func (*ReplyBody_MSG_ACCEPTED) GetEncodedSizeBytes

func (m *ReplyBody_MSG_ACCEPTED) GetEncodedSizeBytes() (nTotal int)

func (*ReplyBody_MSG_ACCEPTED) GetStat

func (m *ReplyBody_MSG_ACCEPTED) GetStat() ReplyStat

func (*ReplyBody_MSG_ACCEPTED) WriteTo

func (m *ReplyBody_MSG_ACCEPTED) WriteTo(w io.Writer) (nTotal int64, err error)

type ReplyBody_MSG_DENIED

type ReplyBody_MSG_DENIED struct {
	Rreply RejectedReply
}

func (*ReplyBody_MSG_DENIED) GetEncodedSizeBytes

func (m *ReplyBody_MSG_DENIED) GetEncodedSizeBytes() (nTotal int)

func (*ReplyBody_MSG_DENIED) GetStat

func (m *ReplyBody_MSG_DENIED) GetStat() ReplyStat

func (*ReplyBody_MSG_DENIED) WriteTo

func (m *ReplyBody_MSG_DENIED) WriteTo(w io.Writer) (nTotal int64, err error)

type ReplyStat

type ReplyStat int32
const MSG_ACCEPTED ReplyStat = 0
const MSG_DENIED ReplyStat = 1

func (*ReplyStat) ReadFrom

func (mParent *ReplyStat) ReadFrom(r io.Reader) (nTotal int64, err error)

func (ReplyStat) WriteTo

func (m ReplyStat) WriteTo(w io.Writer) (nTotal int64, err error)

type RpcMsg

type RpcMsg struct {
	Xid  uint32
	Body interface {
		GetMtype() MsgType
		io.WriterTo
		GetEncodedSizeBytes() int
		// contains filtered or unexported methods
	}
}

func (*RpcMsg) GetEncodedSizeBytes

func (m *RpcMsg) GetEncodedSizeBytes() (nTotal int)

func (*RpcMsg) ReadFrom

func (m *RpcMsg) ReadFrom(r io.Reader) (nTotal int64, err error)

func (*RpcMsg) WriteTo

func (m *RpcMsg) WriteTo(w io.Writer) (nTotal int64, err error)

type RpcMsgBody_CALL

type RpcMsgBody_CALL struct {
	Cbody CallBody
}

func (*RpcMsgBody_CALL) GetEncodedSizeBytes

func (m *RpcMsgBody_CALL) GetEncodedSizeBytes() (nTotal int)

func (*RpcMsgBody_CALL) GetMtype

func (m *RpcMsgBody_CALL) GetMtype() MsgType

func (*RpcMsgBody_CALL) WriteTo

func (m *RpcMsgBody_CALL) WriteTo(w io.Writer) (nTotal int64, err error)

type RpcMsgBody_REPLY

type RpcMsgBody_REPLY struct {
	Rbody ReplyBody
}

func (*RpcMsgBody_REPLY) GetEncodedSizeBytes

func (m *RpcMsgBody_REPLY) GetEncodedSizeBytes() (nTotal int)

func (*RpcMsgBody_REPLY) GetMtype

func (m *RpcMsgBody_REPLY) GetMtype() MsgType

func (*RpcMsgBody_REPLY) WriteTo

func (m *RpcMsgBody_REPLY) WriteTo(w io.Writer) (nTotal int64, err error)

Jump to

Keyboard shortcuts

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