Documentation ¶
Index ¶
- func RegisterFirewalldServer(s *grpc.Server, srv FirewalldServer)
- type AddRuleRequest
- func (*AddRuleRequest) Descriptor() ([]byte, []int)
- func (m *AddRuleRequest) GetHostId() string
- func (m *AddRuleRequest) GetPermanent() bool
- func (m *AddRuleRequest) GetRich() *RichRule
- func (m *AddRuleRequest) GetRule() isAddRuleRequest_Rule
- func (m *AddRuleRequest) GetZone() string
- func (*AddRuleRequest) ProtoMessage()
- func (m *AddRuleRequest) Reset()
- func (m *AddRuleRequest) String() string
- func (m *AddRuleRequest) XXX_DiscardUnknown()
- func (m *AddRuleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddRuleRequest) XXX_Merge(src proto.Message)
- func (*AddRuleRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *AddRuleRequest) XXX_Size() int
- func (m *AddRuleRequest) XXX_Unmarshal(b []byte) error
- type AddRuleRequest_Rich
- type FirewalldClient
- type FirewalldServer
- type ReloadRequest
- func (*ReloadRequest) Descriptor() ([]byte, []int)
- func (m *ReloadRequest) GetHostId() string
- func (*ReloadRequest) ProtoMessage()
- func (m *ReloadRequest) Reset()
- func (m *ReloadRequest) String() string
- func (m *ReloadRequest) XXX_DiscardUnknown()
- func (m *ReloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReloadRequest) XXX_Merge(src proto.Message)
- func (m *ReloadRequest) XXX_Size() int
- func (m *ReloadRequest) XXX_Unmarshal(b []byte) error
- type RichRule
- func (*RichRule) Descriptor() ([]byte, []int)
- func (m *RichRule) GetAction() string
- func (m *RichRule) GetDest() *RichRuleAddress
- func (m *RichRule) GetFamily() string
- func (m *RichRule) GetForwardPort() *RichRulePort
- func (m *RichRule) GetPort() *RichRulePort
- func (m *RichRule) GetProtocol() string
- func (m *RichRule) GetServiceName() string
- func (m *RichRule) GetSource() *RichRuleAddress
- func (m *RichRule) GetSourcePort() *RichRulePort
- func (*RichRule) ProtoMessage()
- func (m *RichRule) Reset()
- func (m *RichRule) String() string
- func (r RichRule) ToString() string
- func (m *RichRule) XXX_DiscardUnknown()
- func (m *RichRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RichRule) XXX_Merge(src proto.Message)
- func (m *RichRule) XXX_Size() int
- func (m *RichRule) XXX_Unmarshal(b []byte) error
- type RichRuleAddress
- func (*RichRuleAddress) Descriptor() ([]byte, []int)
- func (m *RichRuleAddress) GetAddress() string
- func (m *RichRuleAddress) GetInvert() bool
- func (*RichRuleAddress) ProtoMessage()
- func (m *RichRuleAddress) Reset()
- func (m *RichRuleAddress) String() string
- func (adr RichRuleAddress) ToString() string
- func (m *RichRuleAddress) XXX_DiscardUnknown()
- func (m *RichRuleAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RichRuleAddress) XXX_Merge(src proto.Message)
- func (m *RichRuleAddress) XXX_Size() int
- func (m *RichRuleAddress) XXX_Unmarshal(b []byte) error
- type RichRulePort
- func (*RichRulePort) Descriptor() ([]byte, []int)
- func (m *RichRulePort) GetPort() string
- func (m *RichRulePort) GetProtocol() string
- func (*RichRulePort) ProtoMessage()
- func (m *RichRulePort) Reset()
- func (m *RichRulePort) String() string
- func (p RichRulePort) ToString() string
- func (m *RichRulePort) XXX_DiscardUnknown()
- func (m *RichRulePort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RichRulePort) XXX_Merge(src proto.Message)
- func (m *RichRulePort) XXX_Size() int
- func (m *RichRulePort) XXX_Unmarshal(b []byte) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFirewalldServer ¶
func RegisterFirewalldServer(s *grpc.Server, srv FirewalldServer)
Types ¶
type AddRuleRequest ¶
type AddRuleRequest struct { HostId string `protobuf:"bytes,2,opt,name=hostId,proto3" json:"hostId,omitempty"` Zone string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"` Permanent bool `protobuf:"varint,4,opt,name=permanent,proto3" json:"permanent,omitempty"` // Types that are valid to be assigned to Rule: // *AddRuleRequest_Rich Rule isAddRuleRequest_Rule `protobuf_oneof:"rule"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddRuleRequest) Descriptor ¶
func (*AddRuleRequest) Descriptor() ([]byte, []int)
func (*AddRuleRequest) GetHostId ¶
func (m *AddRuleRequest) GetHostId() string
func (*AddRuleRequest) GetPermanent ¶
func (m *AddRuleRequest) GetPermanent() bool
func (*AddRuleRequest) GetRich ¶
func (m *AddRuleRequest) GetRich() *RichRule
func (*AddRuleRequest) GetRule ¶
func (m *AddRuleRequest) GetRule() isAddRuleRequest_Rule
func (*AddRuleRequest) GetZone ¶
func (m *AddRuleRequest) GetZone() string
func (*AddRuleRequest) ProtoMessage ¶
func (*AddRuleRequest) ProtoMessage()
func (*AddRuleRequest) Reset ¶
func (m *AddRuleRequest) Reset()
func (*AddRuleRequest) String ¶
func (m *AddRuleRequest) String() string
func (*AddRuleRequest) XXX_DiscardUnknown ¶
func (m *AddRuleRequest) XXX_DiscardUnknown()
func (*AddRuleRequest) XXX_Marshal ¶
func (m *AddRuleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddRuleRequest) XXX_Merge ¶
func (m *AddRuleRequest) XXX_Merge(src proto.Message)
func (*AddRuleRequest) XXX_OneofFuncs ¶
func (*AddRuleRequest) 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.
func (*AddRuleRequest) XXX_Size ¶
func (m *AddRuleRequest) XXX_Size() int
func (*AddRuleRequest) XXX_Unmarshal ¶
func (m *AddRuleRequest) XXX_Unmarshal(b []byte) error
type AddRuleRequest_Rich ¶
type AddRuleRequest_Rich struct {
Rich *RichRule `protobuf:"bytes,5,opt,name=rich,proto3,oneof"`
}
type FirewalldClient ¶
type FirewalldClient interface { AddRule(ctx context.Context, in *AddRuleRequest, opts ...grpc.CallOption) (*pb.Response, error) Reload(ctx context.Context, in *ReloadRequest, opts ...grpc.CallOption) (*pb.Response, error) }
FirewalldClient is the client API for Firewalld service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewFirewalldClient ¶
func NewFirewalldClient(cc *grpc.ClientConn) FirewalldClient
type FirewalldServer ¶
type FirewalldServer interface { AddRule(context.Context, *AddRuleRequest) (*pb.Response, error) Reload(context.Context, *ReloadRequest) (*pb.Response, error) }
FirewalldServer is the server API for Firewalld service.
type ReloadRequest ¶
type ReloadRequest struct { HostId string `protobuf:"bytes,2,opt,name=hostId,proto3" json:"hostId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReloadRequest) Descriptor ¶
func (*ReloadRequest) Descriptor() ([]byte, []int)
func (*ReloadRequest) GetHostId ¶
func (m *ReloadRequest) GetHostId() string
func (*ReloadRequest) ProtoMessage ¶
func (*ReloadRequest) ProtoMessage()
func (*ReloadRequest) Reset ¶
func (m *ReloadRequest) Reset()
func (*ReloadRequest) String ¶
func (m *ReloadRequest) String() string
func (*ReloadRequest) XXX_DiscardUnknown ¶
func (m *ReloadRequest) XXX_DiscardUnknown()
func (*ReloadRequest) XXX_Marshal ¶
func (m *ReloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReloadRequest) XXX_Merge ¶
func (m *ReloadRequest) XXX_Merge(src proto.Message)
func (*ReloadRequest) XXX_Size ¶
func (m *ReloadRequest) XXX_Size() int
func (*ReloadRequest) XXX_Unmarshal ¶
func (m *ReloadRequest) XXX_Unmarshal(b []byte) error
type RichRule ¶
type RichRule struct { Family string `protobuf:"bytes,1,opt,name=family,proto3" json:"family,omitempty"` Source *RichRuleAddress `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` Dest *RichRuleAddress `protobuf:"bytes,3,opt,name=dest,proto3" json:"dest,omitempty"` Port *RichRulePort `protobuf:"bytes,4,opt,name=port,proto3" json:"port,omitempty"` SourcePort *RichRulePort `protobuf:"bytes,5,opt,name=sourcePort,proto3" json:"sourcePort,omitempty"` ForwardPort *RichRulePort `protobuf:"bytes,6,opt,name=forwardPort,proto3" json:"forwardPort,omitempty"` Protocol string `protobuf:"bytes,7,opt,name=protocol,proto3" json:"protocol,omitempty"` ServiceName string `protobuf:"bytes,8,opt,name=serviceName,proto3" json:"serviceName,omitempty"` Action string `protobuf:"bytes,9,opt,name=action,proto3" json:"action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RichRule) Descriptor ¶
func (*RichRule) GetDest ¶
func (m *RichRule) GetDest() *RichRuleAddress
func (*RichRule) GetForwardPort ¶
func (m *RichRule) GetForwardPort() *RichRulePort
func (*RichRule) GetPort ¶
func (m *RichRule) GetPort() *RichRulePort
func (*RichRule) GetProtocol ¶
func (*RichRule) GetServiceName ¶
func (*RichRule) GetSource ¶
func (m *RichRule) GetSource() *RichRuleAddress
func (*RichRule) GetSourcePort ¶
func (m *RichRule) GetSourcePort() *RichRulePort
func (*RichRule) ProtoMessage ¶
func (*RichRule) ProtoMessage()
func (*RichRule) XXX_DiscardUnknown ¶
func (m *RichRule) XXX_DiscardUnknown()
func (*RichRule) XXX_Marshal ¶
func (*RichRule) XXX_Unmarshal ¶
type RichRuleAddress ¶
type RichRuleAddress struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Invert bool `protobuf:"varint,2,opt,name=invert,proto3" json:"invert,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RichRuleAddress) Descriptor ¶
func (*RichRuleAddress) Descriptor() ([]byte, []int)
func (*RichRuleAddress) GetAddress ¶
func (m *RichRuleAddress) GetAddress() string
func (*RichRuleAddress) GetInvert ¶
func (m *RichRuleAddress) GetInvert() bool
func (*RichRuleAddress) ProtoMessage ¶
func (*RichRuleAddress) ProtoMessage()
func (*RichRuleAddress) Reset ¶
func (m *RichRuleAddress) Reset()
func (*RichRuleAddress) String ¶
func (m *RichRuleAddress) String() string
func (RichRuleAddress) ToString ¶
func (adr RichRuleAddress) ToString() string
func (*RichRuleAddress) XXX_DiscardUnknown ¶
func (m *RichRuleAddress) XXX_DiscardUnknown()
func (*RichRuleAddress) XXX_Marshal ¶
func (m *RichRuleAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RichRuleAddress) XXX_Merge ¶
func (m *RichRuleAddress) XXX_Merge(src proto.Message)
func (*RichRuleAddress) XXX_Size ¶
func (m *RichRuleAddress) XXX_Size() int
func (*RichRuleAddress) XXX_Unmarshal ¶
func (m *RichRuleAddress) XXX_Unmarshal(b []byte) error
type RichRulePort ¶
type RichRulePort struct { Port string `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"` Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RichRulePort) Descriptor ¶
func (*RichRulePort) Descriptor() ([]byte, []int)
func (*RichRulePort) GetPort ¶
func (m *RichRulePort) GetPort() string
func (*RichRulePort) GetProtocol ¶
func (m *RichRulePort) GetProtocol() string
func (*RichRulePort) ProtoMessage ¶
func (*RichRulePort) ProtoMessage()
func (*RichRulePort) Reset ¶
func (m *RichRulePort) Reset()
func (*RichRulePort) String ¶
func (m *RichRulePort) String() string
func (RichRulePort) ToString ¶
func (p RichRulePort) ToString() string
func (*RichRulePort) XXX_DiscardUnknown ¶
func (m *RichRulePort) XXX_DiscardUnknown()
func (*RichRulePort) XXX_Marshal ¶
func (m *RichRulePort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RichRulePort) XXX_Merge ¶
func (m *RichRulePort) XXX_Merge(src proto.Message)
func (*RichRulePort) XXX_Size ¶
func (m *RichRulePort) XXX_Size() int
func (*RichRulePort) XXX_Unmarshal ¶
func (m *RichRulePort) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.