firewalld

package
v0.0.0-...-02fedb7 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*RichRule) GetAction

func (m *RichRule) GetAction() string

func (*RichRule) GetDest

func (m *RichRule) GetDest() *RichRuleAddress

func (*RichRule) GetFamily

func (m *RichRule) GetFamily() string

func (*RichRule) GetForwardPort

func (m *RichRule) GetForwardPort() *RichRulePort

func (*RichRule) GetPort

func (m *RichRule) GetPort() *RichRulePort

func (*RichRule) GetProtocol

func (m *RichRule) GetProtocol() string

func (*RichRule) GetServiceName

func (m *RichRule) GetServiceName() string

func (*RichRule) GetSource

func (m *RichRule) GetSource() *RichRuleAddress

func (*RichRule) GetSourcePort

func (m *RichRule) GetSourcePort() *RichRulePort

func (*RichRule) ProtoMessage

func (*RichRule) ProtoMessage()

func (*RichRule) Reset

func (m *RichRule) Reset()

func (*RichRule) String

func (m *RichRule) String() string

func (RichRule) ToString

func (r RichRule) ToString() string

func (*RichRule) XXX_DiscardUnknown

func (m *RichRule) XXX_DiscardUnknown()

func (*RichRule) XXX_Marshal

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

func (*RichRule) XXX_Merge

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

func (*RichRule) XXX_Size

func (m *RichRule) XXX_Size() int

func (*RichRule) XXX_Unmarshal

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

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

type Server

type Server struct {
	client.GRPCServer
}

func (Server) AddRule

func (s Server) AddRule(ctx context.Context, req *AddRuleRequest) (*pb.Response, error)

func (Server) Reload

func (s Server) Reload(ctx context.Context, req *ReloadRequest) (*pb.Response, error)

Directories

Path Synopsis
github.com

Jump to

Keyboard shortcuts

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