Documentation
¶
Overview ¶
Package proxypb contains proto message used by the CIPD proxy server.
Index ¶
- Variables
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)deprecated
- func (x *Policy) GetAllowedRemotes() []string
- func (x *Policy) GetDescribeClient() *Policy_DescribeClientPolicy
- func (x *Policy) GetGetInstanceUrl() *Policy_GetInstanceURLPolicy
- func (x *Policy) GetResolveVersion() *Policy_ResolveVersionPolicy
- func (*Policy) ProtoMessage()
- func (x *Policy) ProtoReflect() protoreflect.Message
- func (x *Policy) Reset()
- func (x *Policy) String() string
- type Policy_DescribeClientPolicy
- type Policy_GetInstanceURLPolicy
- type Policy_ResolveVersionPolicy
- func (*Policy_ResolveVersionPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *Policy_ResolveVersionPolicy) GetAllowRefs() bool
- func (x *Policy_ResolveVersionPolicy) GetAllowTags() bool
- func (*Policy_ResolveVersionPolicy) ProtoMessage()
- func (x *Policy_ResolveVersionPolicy) ProtoReflect() protoreflect.Message
- func (x *Policy_ResolveVersionPolicy) Reset()
- func (x *Policy_ResolveVersionPolicy) String() string
- type ProxiedCASObject
Constants ¶
This section is empty.
Variables ¶
var File_go_chromium_org_luci_cipd_client_cipd_proxyserver_proxypb_proxy_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct { // The set of CIPD backend hostnames that are allowed to be accessed. AllowedRemotes []string `protobuf:"bytes,1,rep,name=allowed_remotes,json=allowedRemotes,proto3" json:"allowed_remotes,omitempty"` ResolveVersion *Policy_ResolveVersionPolicy `protobuf:"bytes,2,opt,name=resolve_version,json=resolveVersion,proto3" json:"resolve_version,omitempty"` GetInstanceUrl *Policy_GetInstanceURLPolicy `protobuf:"bytes,3,opt,name=get_instance_url,json=getInstanceUrl,proto3" json:"get_instance_url,omitempty"` DescribeClient *Policy_DescribeClientPolicy `protobuf:"bytes,4,opt,name=describe_client,json=describeClient,proto3" json:"describe_client,omitempty"` // contains filtered or unexported fields }
Policy defines what actions are allowed to be performed through the proxy.
Very minimal right now. By default everything is forbidden. If a field matching an RPC name is present, then this RPC is allowed, subject to restrictions specified in the value of the field (if any).
func (*Policy) Descriptor
deprecated
func (*Policy) GetAllowedRemotes ¶
func (*Policy) GetDescribeClient ¶
func (x *Policy) GetDescribeClient() *Policy_DescribeClientPolicy
func (*Policy) GetGetInstanceUrl ¶
func (x *Policy) GetGetInstanceUrl() *Policy_GetInstanceURLPolicy
func (*Policy) GetResolveVersion ¶
func (x *Policy) GetResolveVersion() *Policy_ResolveVersionPolicy
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) ProtoReflect ¶
func (x *Policy) ProtoReflect() protoreflect.Message
type Policy_DescribeClientPolicy ¶
type Policy_DescribeClientPolicy struct {
// contains filtered or unexported fields
}
Policy for DescribeClient RPC.
func (*Policy_DescribeClientPolicy) Descriptor
deprecated
func (*Policy_DescribeClientPolicy) Descriptor() ([]byte, []int)
Deprecated: Use Policy_DescribeClientPolicy.ProtoReflect.Descriptor instead.
func (*Policy_DescribeClientPolicy) ProtoMessage ¶
func (*Policy_DescribeClientPolicy) ProtoMessage()
func (*Policy_DescribeClientPolicy) ProtoReflect ¶
func (x *Policy_DescribeClientPolicy) ProtoReflect() protoreflect.Message
func (*Policy_DescribeClientPolicy) Reset ¶
func (x *Policy_DescribeClientPolicy) Reset()
func (*Policy_DescribeClientPolicy) String ¶
func (x *Policy_DescribeClientPolicy) String() string
type Policy_GetInstanceURLPolicy ¶
type Policy_GetInstanceURLPolicy struct {
// contains filtered or unexported fields
}
Policy for GetInstanceURL RPC.
func (*Policy_GetInstanceURLPolicy) Descriptor
deprecated
func (*Policy_GetInstanceURLPolicy) Descriptor() ([]byte, []int)
Deprecated: Use Policy_GetInstanceURLPolicy.ProtoReflect.Descriptor instead.
func (*Policy_GetInstanceURLPolicy) ProtoMessage ¶
func (*Policy_GetInstanceURLPolicy) ProtoMessage()
func (*Policy_GetInstanceURLPolicy) ProtoReflect ¶
func (x *Policy_GetInstanceURLPolicy) ProtoReflect() protoreflect.Message
func (*Policy_GetInstanceURLPolicy) Reset ¶
func (x *Policy_GetInstanceURLPolicy) Reset()
func (*Policy_GetInstanceURLPolicy) String ¶
func (x *Policy_GetInstanceURLPolicy) String() string
type Policy_ResolveVersionPolicy ¶
type Policy_ResolveVersionPolicy struct { // If set, allow resolving tags. AllowTags bool `protobuf:"varint,1,opt,name=allow_tags,json=allowTags,proto3" json:"allow_tags,omitempty"` // If set, allow resolving refs. AllowRefs bool `protobuf:"varint,2,opt,name=allow_refs,json=allowRefs,proto3" json:"allow_refs,omitempty"` // contains filtered or unexported fields }
Policy for ResolveVersion RPC.
func (*Policy_ResolveVersionPolicy) Descriptor
deprecated
func (*Policy_ResolveVersionPolicy) Descriptor() ([]byte, []int)
Deprecated: Use Policy_ResolveVersionPolicy.ProtoReflect.Descriptor instead.
func (*Policy_ResolveVersionPolicy) GetAllowRefs ¶
func (x *Policy_ResolveVersionPolicy) GetAllowRefs() bool
func (*Policy_ResolveVersionPolicy) GetAllowTags ¶
func (x *Policy_ResolveVersionPolicy) GetAllowTags() bool
func (*Policy_ResolveVersionPolicy) ProtoMessage ¶
func (*Policy_ResolveVersionPolicy) ProtoMessage()
func (*Policy_ResolveVersionPolicy) ProtoReflect ¶
func (x *Policy_ResolveVersionPolicy) ProtoReflect() protoreflect.Message
func (*Policy_ResolveVersionPolicy) Reset ¶
func (x *Policy_ResolveVersionPolicy) Reset()
func (*Policy_ResolveVersionPolicy) String ¶
func (x *Policy_ResolveVersionPolicy) String() string
type ProxiedCASObject ¶
type ProxiedCASObject struct { // The original GCS signed URL. SignedUrl string `protobuf:"bytes,1,opt,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` // contains filtered or unexported fields }
ProxiedCASObject is encoded in the CAS object URL returned by the proxy.
It gets serialized, encrypted and signed and sent to the proxy client. This is a precaution against the client abusing the proxy to fetch arbitrary GCS files.
func (*ProxiedCASObject) Descriptor
deprecated
func (*ProxiedCASObject) Descriptor() ([]byte, []int)
Deprecated: Use ProxiedCASObject.ProtoReflect.Descriptor instead.
func (*ProxiedCASObject) GetSignedUrl ¶
func (x *ProxiedCASObject) GetSignedUrl() string
func (*ProxiedCASObject) ProtoMessage ¶
func (*ProxiedCASObject) ProtoMessage()
func (*ProxiedCASObject) ProtoReflect ¶
func (x *ProxiedCASObject) ProtoReflect() protoreflect.Message
func (*ProxiedCASObject) Reset ¶
func (x *ProxiedCASObject) Reset()
func (*ProxiedCASObject) String ¶
func (x *ProxiedCASObject) String() string