response

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePolicyResp

type CreatePolicyResp struct {
	Action               string               `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	Subjects             []string             `protobuf:"bytes,2,rep,name=subjects,proto3" json:"subjects,omitempty"`
	Id                   string               `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Resource             string               `protobuf:"bytes,4,opt,name=resource,proto3" json:"resource,omitempty"`
	Effect               string               `protobuf:"bytes,5,opt,name=effect,proto3" json:"effect,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

We aren't using a Policy message here since we want to return a flat object via our external HTTP API.

func (*CreatePolicyResp) Descriptor

func (*CreatePolicyResp) Descriptor() ([]byte, []int)

func (*CreatePolicyResp) GetAction

func (m *CreatePolicyResp) GetAction() string

func (*CreatePolicyResp) GetCreatedAt

func (m *CreatePolicyResp) GetCreatedAt() *timestamp.Timestamp

func (*CreatePolicyResp) GetEffect

func (m *CreatePolicyResp) GetEffect() string

func (*CreatePolicyResp) GetId

func (m *CreatePolicyResp) GetId() string

func (*CreatePolicyResp) GetResource

func (m *CreatePolicyResp) GetResource() string

func (*CreatePolicyResp) GetSubjects

func (m *CreatePolicyResp) GetSubjects() []string

func (*CreatePolicyResp) GetUpdatedAt

func (m *CreatePolicyResp) GetUpdatedAt() *timestamp.Timestamp

func (*CreatePolicyResp) ProtoMessage

func (*CreatePolicyResp) ProtoMessage()

func (*CreatePolicyResp) Reset

func (m *CreatePolicyResp) Reset()

func (*CreatePolicyResp) String

func (m *CreatePolicyResp) String() string

func (*CreatePolicyResp) XXX_DiscardUnknown

func (m *CreatePolicyResp) XXX_DiscardUnknown()

func (*CreatePolicyResp) XXX_Marshal

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

func (*CreatePolicyResp) XXX_Merge

func (dst *CreatePolicyResp) XXX_Merge(src proto.Message)

func (*CreatePolicyResp) XXX_Size

func (m *CreatePolicyResp) XXX_Size() int

func (*CreatePolicyResp) XXX_Unmarshal

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

type DeletePolicyResp

type DeletePolicyResp struct {
	Action               string               `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	Subjects             []string             `protobuf:"bytes,2,rep,name=subjects,proto3" json:"subjects,omitempty"`
	Id                   string               `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Resource             string               `protobuf:"bytes,4,opt,name=resource,proto3" json:"resource,omitempty"`
	Effect               string               `protobuf:"bytes,5,opt,name=effect,proto3" json:"effect,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*DeletePolicyResp) Descriptor

func (*DeletePolicyResp) Descriptor() ([]byte, []int)

func (*DeletePolicyResp) GetAction

func (m *DeletePolicyResp) GetAction() string

func (*DeletePolicyResp) GetCreatedAt

func (m *DeletePolicyResp) GetCreatedAt() *timestamp.Timestamp

func (*DeletePolicyResp) GetEffect

func (m *DeletePolicyResp) GetEffect() string

func (*DeletePolicyResp) GetId

func (m *DeletePolicyResp) GetId() string

func (*DeletePolicyResp) GetResource

func (m *DeletePolicyResp) GetResource() string

func (*DeletePolicyResp) GetSubjects

func (m *DeletePolicyResp) GetSubjects() []string

func (*DeletePolicyResp) GetUpdatedAt

func (m *DeletePolicyResp) GetUpdatedAt() *timestamp.Timestamp

func (*DeletePolicyResp) ProtoMessage

func (*DeletePolicyResp) ProtoMessage()

func (*DeletePolicyResp) Reset

func (m *DeletePolicyResp) Reset()

func (*DeletePolicyResp) String

func (m *DeletePolicyResp) String() string

func (*DeletePolicyResp) XXX_DiscardUnknown

func (m *DeletePolicyResp) XXX_DiscardUnknown()

func (*DeletePolicyResp) XXX_Marshal

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

func (*DeletePolicyResp) XXX_Merge

func (dst *DeletePolicyResp) XXX_Merge(src proto.Message)

func (*DeletePolicyResp) XXX_Size

func (m *DeletePolicyResp) XXX_Size() int

func (*DeletePolicyResp) XXX_Unmarshal

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

type IntrospectProjectsResp

type IntrospectProjectsResp struct {
	Projects             []string `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*IntrospectProjectsResp) Descriptor

func (*IntrospectProjectsResp) Descriptor() ([]byte, []int)

func (*IntrospectProjectsResp) GetProjects

func (m *IntrospectProjectsResp) GetProjects() []string

func (*IntrospectProjectsResp) ProtoMessage

func (*IntrospectProjectsResp) ProtoMessage()

func (*IntrospectProjectsResp) Reset

func (m *IntrospectProjectsResp) Reset()

func (*IntrospectProjectsResp) String

func (m *IntrospectProjectsResp) String() string

func (*IntrospectProjectsResp) XXX_DiscardUnknown

func (m *IntrospectProjectsResp) XXX_DiscardUnknown()

func (*IntrospectProjectsResp) XXX_Marshal

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

func (*IntrospectProjectsResp) XXX_Merge

func (dst *IntrospectProjectsResp) XXX_Merge(src proto.Message)

func (*IntrospectProjectsResp) XXX_Size

func (m *IntrospectProjectsResp) XXX_Size() int

func (*IntrospectProjectsResp) XXX_Unmarshal

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

type IntrospectResp

type IntrospectResp struct {
	Endpoints            map[string]*MethodsAllowed `` /* 159-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

func (*IntrospectResp) Descriptor

func (*IntrospectResp) Descriptor() ([]byte, []int)

func (*IntrospectResp) GetEndpoints

func (m *IntrospectResp) GetEndpoints() map[string]*MethodsAllowed

func (*IntrospectResp) ProtoMessage

func (*IntrospectResp) ProtoMessage()

func (*IntrospectResp) Reset

func (m *IntrospectResp) Reset()

func (*IntrospectResp) String

func (m *IntrospectResp) String() string

func (*IntrospectResp) XXX_DiscardUnknown

func (m *IntrospectResp) XXX_DiscardUnknown()

func (*IntrospectResp) XXX_Marshal

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

func (*IntrospectResp) XXX_Merge

func (dst *IntrospectResp) XXX_Merge(src proto.Message)

func (*IntrospectResp) XXX_Size

func (m *IntrospectResp) XXX_Size() int

func (*IntrospectResp) XXX_Unmarshal

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

type IsAuthorizedResp

type IsAuthorizedResp struct {
	Authorized           bool     `protobuf:"varint,1,opt,name=authorized,proto3" json:"authorized,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*IsAuthorizedResp) Descriptor

func (*IsAuthorizedResp) Descriptor() ([]byte, []int)

func (*IsAuthorizedResp) GetAuthorized

func (m *IsAuthorizedResp) GetAuthorized() bool

func (*IsAuthorizedResp) ProtoMessage

func (*IsAuthorizedResp) ProtoMessage()

func (*IsAuthorizedResp) Reset

func (m *IsAuthorizedResp) Reset()

func (*IsAuthorizedResp) String

func (m *IsAuthorizedResp) String() string

func (*IsAuthorizedResp) XXX_DiscardUnknown

func (m *IsAuthorizedResp) XXX_DiscardUnknown()

func (*IsAuthorizedResp) XXX_Marshal

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

func (*IsAuthorizedResp) XXX_Merge

func (dst *IsAuthorizedResp) XXX_Merge(src proto.Message)

func (*IsAuthorizedResp) XXX_Size

func (m *IsAuthorizedResp) XXX_Size() int

func (*IsAuthorizedResp) XXX_Unmarshal

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

type ListPoliciesResp

type ListPoliciesResp struct {
	Policies             []*Policy `protobuf:"bytes,1,rep,name=policies,proto3" json:"policies,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*ListPoliciesResp) Descriptor

func (*ListPoliciesResp) Descriptor() ([]byte, []int)

func (*ListPoliciesResp) GetPolicies

func (m *ListPoliciesResp) GetPolicies() []*Policy

func (*ListPoliciesResp) ProtoMessage

func (*ListPoliciesResp) ProtoMessage()

func (*ListPoliciesResp) Reset

func (m *ListPoliciesResp) Reset()

func (*ListPoliciesResp) String

func (m *ListPoliciesResp) String() string

func (*ListPoliciesResp) XXX_DiscardUnknown

func (m *ListPoliciesResp) XXX_DiscardUnknown()

func (*ListPoliciesResp) XXX_Marshal

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

func (*ListPoliciesResp) XXX_Merge

func (dst *ListPoliciesResp) XXX_Merge(src proto.Message)

func (*ListPoliciesResp) XXX_Size

func (m *ListPoliciesResp) XXX_Size() int

func (*ListPoliciesResp) XXX_Unmarshal

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

type MethodsAllowed

type MethodsAllowed struct {
	Get                  bool     `protobuf:"varint,1,opt,name=get,proto3" json:"get,omitempty"`
	Put                  bool     `protobuf:"varint,2,opt,name=put,proto3" json:"put,omitempty"`
	Post                 bool     `protobuf:"varint,3,opt,name=post,proto3" json:"post,omitempty"`
	Delete               bool     `protobuf:"varint,4,opt,name=delete,proto3" json:"delete,omitempty"`
	Patch                bool     `protobuf:"varint,5,opt,name=patch,proto3" json:"patch,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MethodsAllowed) Descriptor

func (*MethodsAllowed) Descriptor() ([]byte, []int)

func (*MethodsAllowed) GetDelete

func (m *MethodsAllowed) GetDelete() bool

func (*MethodsAllowed) GetGet

func (m *MethodsAllowed) GetGet() bool

func (*MethodsAllowed) GetPatch

func (m *MethodsAllowed) GetPatch() bool

func (*MethodsAllowed) GetPost

func (m *MethodsAllowed) GetPost() bool

func (*MethodsAllowed) GetPut

func (m *MethodsAllowed) GetPut() bool

func (*MethodsAllowed) ProtoMessage

func (*MethodsAllowed) ProtoMessage()

func (*MethodsAllowed) Reset

func (m *MethodsAllowed) Reset()

func (*MethodsAllowed) String

func (m *MethodsAllowed) String() string

func (*MethodsAllowed) XXX_DiscardUnknown

func (m *MethodsAllowed) XXX_DiscardUnknown()

func (*MethodsAllowed) XXX_Marshal

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

func (*MethodsAllowed) XXX_Merge

func (dst *MethodsAllowed) XXX_Merge(src proto.Message)

func (*MethodsAllowed) XXX_Size

func (m *MethodsAllowed) XXX_Size() int

func (*MethodsAllowed) XXX_Unmarshal

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

type Policy

type Policy struct {
	Action               string               `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	Subjects             []string             `protobuf:"bytes,2,rep,name=subjects,proto3" json:"subjects,omitempty"`
	Id                   string               `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Resource             string               `protobuf:"bytes,4,opt,name=resource,proto3" json:"resource,omitempty"`
	Effect               string               `protobuf:"bytes,5,opt,name=effect,proto3" json:"effect,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Policy) Descriptor

func (*Policy) Descriptor() ([]byte, []int)

func (*Policy) GetAction

func (m *Policy) GetAction() string

func (*Policy) GetCreatedAt

func (m *Policy) GetCreatedAt() *timestamp.Timestamp

func (*Policy) GetEffect

func (m *Policy) GetEffect() string

func (*Policy) GetId

func (m *Policy) GetId() string

func (*Policy) GetResource

func (m *Policy) GetResource() string

func (*Policy) GetSubjects

func (m *Policy) GetSubjects() []string

func (*Policy) GetUpdatedAt

func (m *Policy) GetUpdatedAt() *timestamp.Timestamp

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) Reset

func (m *Policy) Reset()

func (*Policy) String

func (m *Policy) String() string

func (*Policy) XXX_DiscardUnknown

func (m *Policy) XXX_DiscardUnknown()

func (*Policy) XXX_Marshal

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

func (*Policy) XXX_Merge

func (dst *Policy) XXX_Merge(src proto.Message)

func (*Policy) XXX_Size

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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