Documentation
¶
Index ¶
- Variables
- func RegisterAuthzServer(s *grpc.Server, srv AuthzServer)
- type AuthzClient
- type AuthzServer
- type Authz_RotateClient
- type Authz_RotateServer
- type FinalizeRequest
- type GetRequest
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResponse) GetCreatedOn() uint64
- func (x *GetResponse) GetPolicy() string
- func (x *GetResponse) GetVersion() string
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (x *GetResponse) String() string
- type ProbeRequest
- func (*ProbeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProbeRequest) GetRpc() string
- func (x *ProbeRequest) GetUser() string
- func (*ProbeRequest) ProtoMessage()
- func (x *ProbeRequest) ProtoReflect() protoreflect.Message
- func (x *ProbeRequest) Reset()
- func (x *ProbeRequest) String() string
- type ProbeResponse
- func (*ProbeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProbeResponse) GetAction() ProbeResponse_Action
- func (x *ProbeResponse) GetVersion() string
- func (*ProbeResponse) ProtoMessage()
- func (x *ProbeResponse) ProtoReflect() protoreflect.Message
- func (x *ProbeResponse) Reset()
- func (x *ProbeResponse) String() string
- type ProbeResponse_Action
- func (ProbeResponse_Action) Descriptor() protoreflect.EnumDescriptor
- func (x ProbeResponse_Action) Enum() *ProbeResponse_Action
- func (ProbeResponse_Action) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProbeResponse_Action) Number() protoreflect.EnumNumber
- func (x ProbeResponse_Action) String() string
- func (ProbeResponse_Action) Type() protoreflect.EnumType
- type RotateAuthzRequest
- func (*RotateAuthzRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RotateAuthzRequest) GetFinalizeRotation() *FinalizeRequest
- func (x *RotateAuthzRequest) GetForceOverwrite() bool
- func (m *RotateAuthzRequest) GetRotateRequest() isRotateAuthzRequest_RotateRequest
- func (x *RotateAuthzRequest) GetUploadRequest() *UploadRequest
- func (*RotateAuthzRequest) ProtoMessage()
- func (x *RotateAuthzRequest) ProtoReflect() protoreflect.Message
- func (x *RotateAuthzRequest) Reset()
- func (x *RotateAuthzRequest) String() string
- type RotateAuthzRequest_FinalizeRotation
- type RotateAuthzRequest_UploadRequest
- type RotateAuthzResponse
- func (*RotateAuthzResponse) Descriptor() ([]byte, []int)deprecated
- func (m *RotateAuthzResponse) GetRotateResponse() isRotateAuthzResponse_RotateResponse
- func (x *RotateAuthzResponse) GetUploadResponse() *UploadResponse
- func (*RotateAuthzResponse) ProtoMessage()
- func (x *RotateAuthzResponse) ProtoReflect() protoreflect.Message
- func (x *RotateAuthzResponse) Reset()
- func (x *RotateAuthzResponse) String() string
- type RotateAuthzResponse_UploadResponse
- type UnimplementedAuthzServer
- type UploadRequest
- func (*UploadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadRequest) GetCreatedOn() uint64
- func (x *UploadRequest) GetPolicy() string
- func (x *UploadRequest) GetVersion() string
- func (*UploadRequest) ProtoMessage()
- func (x *UploadRequest) ProtoReflect() protoreflect.Message
- func (x *UploadRequest) Reset()
- func (x *UploadRequest) String() string
- type UploadResponse
Constants ¶
This section is empty.
Variables ¶
var ( ProbeResponse_Action_name = map[int32]string{ 0: "ACTION_UNSPECIFIED", 1: "ACTION_DENY", 2: "ACTION_PERMIT", } ProbeResponse_Action_value = map[string]int32{ "ACTION_UNSPECIFIED": 0, "ACTION_DENY": 1, "ACTION_PERMIT": 2, } )
Enum value maps for ProbeResponse_Action.
var File_github_com_openconfig_gnsi_authz_authz_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthzServer ¶
func RegisterAuthzServer(s *grpc.Server, srv AuthzServer)
Types ¶
type AuthzClient ¶
type AuthzClient interface {
Rotate(ctx context.Context, opts ...grpc.CallOption) (Authz_RotateClient, error)
Probe(ctx context.Context, in *ProbeRequest, opts ...grpc.CallOption) (*ProbeResponse, error)
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
}
AuthzClient is the client API for Authz service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthzClient ¶
func NewAuthzClient(cc grpc.ClientConnInterface) AuthzClient
type AuthzServer ¶
type AuthzServer interface {
Rotate(Authz_RotateServer) error
Probe(context.Context, *ProbeRequest) (*ProbeResponse, error)
Get(context.Context, *GetRequest) (*GetResponse, error)
}
AuthzServer is the server API for Authz service.
type Authz_RotateClient ¶
type Authz_RotateClient interface {
Send(*RotateAuthzRequest) error
Recv() (*RotateAuthzResponse, error)
grpc.ClientStream
}
type Authz_RotateServer ¶
type Authz_RotateServer interface {
Send(*RotateAuthzResponse) error
Recv() (*RotateAuthzRequest, error)
grpc.ServerStream
}
type FinalizeRequest ¶
type FinalizeRequest struct {
// contains filtered or unexported fields
}
func (*FinalizeRequest) Descriptor
deprecated
func (*FinalizeRequest) Descriptor() ([]byte, []int)
Deprecated: Use FinalizeRequest.ProtoReflect.Descriptor instead.
func (*FinalizeRequest) ProtoMessage ¶
func (*FinalizeRequest) ProtoMessage()
func (*FinalizeRequest) ProtoReflect ¶
func (x *FinalizeRequest) ProtoReflect() protoreflect.Message
func (*FinalizeRequest) Reset ¶
func (x *FinalizeRequest) Reset()
func (*FinalizeRequest) String ¶
func (x *FinalizeRequest) String() string
type GetRequest ¶
type GetRequest struct {
// contains filtered or unexported fields
}
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
CreatedOn uint64 `protobuf:"varint,2,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"`
Policy string `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"`
// contains filtered or unexported fields
}
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetCreatedOn ¶
func (x *GetResponse) GetCreatedOn() uint64
func (*GetResponse) GetPolicy ¶
func (x *GetResponse) GetPolicy() string
func (*GetResponse) GetVersion ¶
func (x *GetResponse) GetVersion() string
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type ProbeRequest ¶
type ProbeRequest struct {
User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
Rpc string `protobuf:"bytes,2,opt,name=rpc,proto3" json:"rpc,omitempty"`
// contains filtered or unexported fields
}
func (*ProbeRequest) Descriptor
deprecated
func (*ProbeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProbeRequest.ProtoReflect.Descriptor instead.
func (*ProbeRequest) GetRpc ¶
func (x *ProbeRequest) GetRpc() string
func (*ProbeRequest) GetUser ¶
func (x *ProbeRequest) GetUser() string
func (*ProbeRequest) ProtoMessage ¶
func (*ProbeRequest) ProtoMessage()
func (*ProbeRequest) ProtoReflect ¶
func (x *ProbeRequest) ProtoReflect() protoreflect.Message
func (*ProbeRequest) Reset ¶
func (x *ProbeRequest) Reset()
func (*ProbeRequest) String ¶
func (x *ProbeRequest) String() string
type ProbeResponse ¶
type ProbeResponse struct {
Action ProbeResponse_Action `protobuf:"varint,1,opt,name=action,proto3,enum=gnsi.authz.v1.ProbeResponse_Action" json:"action,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func (*ProbeResponse) Descriptor
deprecated
func (*ProbeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProbeResponse.ProtoReflect.Descriptor instead.
func (*ProbeResponse) GetAction ¶
func (x *ProbeResponse) GetAction() ProbeResponse_Action
func (*ProbeResponse) GetVersion ¶
func (x *ProbeResponse) GetVersion() string
func (*ProbeResponse) ProtoMessage ¶
func (*ProbeResponse) ProtoMessage()
func (*ProbeResponse) ProtoReflect ¶
func (x *ProbeResponse) ProtoReflect() protoreflect.Message
func (*ProbeResponse) Reset ¶
func (x *ProbeResponse) Reset()
func (*ProbeResponse) String ¶
func (x *ProbeResponse) String() string
type ProbeResponse_Action ¶
type ProbeResponse_Action int32
const ( ProbeResponse_ACTION_UNSPECIFIED ProbeResponse_Action = 0 ProbeResponse_ACTION_DENY ProbeResponse_Action = 1 ProbeResponse_ACTION_PERMIT ProbeResponse_Action = 2 )
func (ProbeResponse_Action) Descriptor ¶
func (ProbeResponse_Action) Descriptor() protoreflect.EnumDescriptor
func (ProbeResponse_Action) Enum ¶
func (x ProbeResponse_Action) Enum() *ProbeResponse_Action
func (ProbeResponse_Action) EnumDescriptor
deprecated
func (ProbeResponse_Action) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProbeResponse_Action.Descriptor instead.
func (ProbeResponse_Action) Number ¶
func (x ProbeResponse_Action) Number() protoreflect.EnumNumber
func (ProbeResponse_Action) String ¶
func (x ProbeResponse_Action) String() string
func (ProbeResponse_Action) Type ¶
func (ProbeResponse_Action) Type() protoreflect.EnumType
type RotateAuthzRequest ¶
type RotateAuthzRequest struct {
// Types that are assignable to RotateRequest:
// *RotateAuthzRequest_UploadRequest
// *RotateAuthzRequest_FinalizeRotation
RotateRequest isRotateAuthzRequest_RotateRequest `protobuf_oneof:"rotate_request"`
ForceOverwrite bool `protobuf:"varint,3,opt,name=force_overwrite,json=forceOverwrite,proto3" json:"force_overwrite,omitempty"`
// contains filtered or unexported fields
}
func (*RotateAuthzRequest) Descriptor
deprecated
func (*RotateAuthzRequest) Descriptor() ([]byte, []int)
Deprecated: Use RotateAuthzRequest.ProtoReflect.Descriptor instead.
func (*RotateAuthzRequest) GetFinalizeRotation ¶
func (x *RotateAuthzRequest) GetFinalizeRotation() *FinalizeRequest
func (*RotateAuthzRequest) GetForceOverwrite ¶
func (x *RotateAuthzRequest) GetForceOverwrite() bool
func (*RotateAuthzRequest) GetRotateRequest ¶
func (m *RotateAuthzRequest) GetRotateRequest() isRotateAuthzRequest_RotateRequest
func (*RotateAuthzRequest) GetUploadRequest ¶
func (x *RotateAuthzRequest) GetUploadRequest() *UploadRequest
func (*RotateAuthzRequest) ProtoMessage ¶
func (*RotateAuthzRequest) ProtoMessage()
func (*RotateAuthzRequest) ProtoReflect ¶
func (x *RotateAuthzRequest) ProtoReflect() protoreflect.Message
func (*RotateAuthzRequest) Reset ¶
func (x *RotateAuthzRequest) Reset()
func (*RotateAuthzRequest) String ¶
func (x *RotateAuthzRequest) String() string
type RotateAuthzRequest_FinalizeRotation ¶
type RotateAuthzRequest_FinalizeRotation struct {
FinalizeRotation *FinalizeRequest `protobuf:"bytes,2,opt,name=finalize_rotation,json=finalizeRotation,proto3,oneof"`
}
type RotateAuthzRequest_UploadRequest ¶
type RotateAuthzRequest_UploadRequest struct {
UploadRequest *UploadRequest `protobuf:"bytes,1,opt,name=upload_request,json=uploadRequest,proto3,oneof"`
}
type RotateAuthzResponse ¶
type RotateAuthzResponse struct {
// Types that are assignable to RotateResponse:
// *RotateAuthzResponse_UploadResponse
RotateResponse isRotateAuthzResponse_RotateResponse `protobuf_oneof:"rotate_response"`
// contains filtered or unexported fields
}
func (*RotateAuthzResponse) Descriptor
deprecated
func (*RotateAuthzResponse) Descriptor() ([]byte, []int)
Deprecated: Use RotateAuthzResponse.ProtoReflect.Descriptor instead.
func (*RotateAuthzResponse) GetRotateResponse ¶
func (m *RotateAuthzResponse) GetRotateResponse() isRotateAuthzResponse_RotateResponse
func (*RotateAuthzResponse) GetUploadResponse ¶
func (x *RotateAuthzResponse) GetUploadResponse() *UploadResponse
func (*RotateAuthzResponse) ProtoMessage ¶
func (*RotateAuthzResponse) ProtoMessage()
func (*RotateAuthzResponse) ProtoReflect ¶
func (x *RotateAuthzResponse) ProtoReflect() protoreflect.Message
func (*RotateAuthzResponse) Reset ¶
func (x *RotateAuthzResponse) Reset()
func (*RotateAuthzResponse) String ¶
func (x *RotateAuthzResponse) String() string
type RotateAuthzResponse_UploadResponse ¶
type RotateAuthzResponse_UploadResponse struct {
UploadResponse *UploadResponse `protobuf:"bytes,1,opt,name=upload_response,json=uploadResponse,proto3,oneof"`
}
type UnimplementedAuthzServer ¶
type UnimplementedAuthzServer struct {
}
UnimplementedAuthzServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthzServer) Get ¶
func (*UnimplementedAuthzServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (*UnimplementedAuthzServer) Probe ¶
func (*UnimplementedAuthzServer) Probe(context.Context, *ProbeRequest) (*ProbeResponse, error)
func (*UnimplementedAuthzServer) Rotate ¶
func (*UnimplementedAuthzServer) Rotate(Authz_RotateServer) error
type UploadRequest ¶
type UploadRequest struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
CreatedOn uint64 `protobuf:"varint,2,opt,name=created_on,json=createdOn,proto3" json:"created_on,omitempty"`
Policy string `protobuf:"bytes,3,opt,name=policy,proto3" json:"policy,omitempty"`
// contains filtered or unexported fields
}
func (*UploadRequest) Descriptor
deprecated
func (*UploadRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadRequest.ProtoReflect.Descriptor instead.
func (*UploadRequest) GetCreatedOn ¶
func (x *UploadRequest) GetCreatedOn() uint64
func (*UploadRequest) GetPolicy ¶
func (x *UploadRequest) GetPolicy() string
func (*UploadRequest) GetVersion ¶
func (x *UploadRequest) GetVersion() string
func (*UploadRequest) ProtoMessage ¶
func (*UploadRequest) ProtoMessage()
func (*UploadRequest) ProtoReflect ¶
func (x *UploadRequest) ProtoReflect() protoreflect.Message
func (*UploadRequest) Reset ¶
func (x *UploadRequest) Reset()
func (*UploadRequest) String ¶
func (x *UploadRequest) String() string
type UploadResponse ¶
type UploadResponse struct {
// contains filtered or unexported fields
}
func (*UploadResponse) Descriptor
deprecated
func (*UploadResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadResponse.ProtoReflect.Descriptor instead.
func (*UploadResponse) ProtoMessage ¶
func (*UploadResponse) ProtoMessage()
func (*UploadResponse) ProtoReflect ¶
func (x *UploadResponse) ProtoReflect() protoreflect.Message
func (*UploadResponse) Reset ¶
func (x *UploadResponse) Reset()
func (*UploadResponse) String ¶
func (x *UploadResponse) String() string