secret

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package secret is a generated protocol buffer package.

It is generated from these files:

github.com/appcelerator/amp/api/rpc/secret/secret.proto

It has these top-level messages:

CreateRequest
CreateReply
ListRequest
SecretEntry
ListReply
RemoveRequest
RemoveReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSecretServer added in v0.16.0

func RegisterSecretServer(s *grpc.Server, srv SecretServer)

Types

type CreateReply added in v0.16.0

type CreateReply struct {
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

func (*CreateReply) Descriptor added in v0.16.0

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

func (*CreateReply) GetId added in v0.16.0

func (m *CreateReply) GetId() string

func (*CreateReply) ProtoMessage added in v0.16.0

func (*CreateReply) ProtoMessage()

func (*CreateReply) Reset added in v0.16.0

func (m *CreateReply) Reset()

func (*CreateReply) String added in v0.16.0

func (m *CreateReply) String() string

type CreateRequest added in v0.16.0

type CreateRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}

func (*CreateRequest) Descriptor added in v0.16.0

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

func (*CreateRequest) GetData added in v0.16.0

func (m *CreateRequest) GetData() []byte

func (*CreateRequest) GetName added in v0.16.0

func (m *CreateRequest) GetName() string

func (*CreateRequest) ProtoMessage added in v0.16.0

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) Reset added in v0.16.0

func (m *CreateRequest) Reset()

func (*CreateRequest) String added in v0.16.0

func (m *CreateRequest) String() string

type ListReply added in v0.16.0

type ListReply struct {
	Entries []*SecretEntry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
}

func (*ListReply) Descriptor added in v0.16.0

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

func (*ListReply) GetEntries added in v0.16.0

func (m *ListReply) GetEntries() []*SecretEntry

func (*ListReply) ProtoMessage added in v0.16.0

func (*ListReply) ProtoMessage()

func (*ListReply) Reset added in v0.16.0

func (m *ListReply) Reset()

func (*ListReply) String added in v0.16.0

func (m *ListReply) String() string

type ListRequest added in v0.16.0

type ListRequest struct {
}

func (*ListRequest) Descriptor added in v0.16.0

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

func (*ListRequest) ProtoMessage added in v0.16.0

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset added in v0.16.0

func (m *ListRequest) Reset()

func (*ListRequest) String added in v0.16.0

func (m *ListRequest) String() string

type RemoveReply added in v0.16.0

type RemoveReply struct {
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

func (*RemoveReply) Descriptor added in v0.16.0

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

func (*RemoveReply) GetId added in v0.16.0

func (m *RemoveReply) GetId() string

func (*RemoveReply) ProtoMessage added in v0.16.0

func (*RemoveReply) ProtoMessage()

func (*RemoveReply) Reset added in v0.16.0

func (m *RemoveReply) Reset()

func (*RemoveReply) String added in v0.16.0

func (m *RemoveReply) String() string

type RemoveRequest added in v0.16.0

type RemoveRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
}

func (*RemoveRequest) Descriptor added in v0.16.0

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

func (*RemoveRequest) GetId added in v0.16.0

func (m *RemoveRequest) GetId() string

func (*RemoveRequest) ProtoMessage added in v0.16.0

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) Reset added in v0.16.0

func (m *RemoveRequest) Reset()

func (*RemoveRequest) String added in v0.16.0

func (m *RemoveRequest) String() string

type SecretClient added in v0.16.0

type SecretClient interface {
	SecretCreate(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
	SecretList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListReply, error)
	SecretRemove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveReply, error)
}

func NewSecretClient added in v0.16.0

func NewSecretClient(cc *grpc.ClientConn) SecretClient

type SecretEntry added in v0.16.0

type SecretEntry struct {
	Id   string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}

func (*SecretEntry) Descriptor added in v0.16.0

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

func (*SecretEntry) GetId added in v0.16.0

func (m *SecretEntry) GetId() string

func (*SecretEntry) GetName added in v0.16.0

func (m *SecretEntry) GetName() string

func (*SecretEntry) ProtoMessage added in v0.16.0

func (*SecretEntry) ProtoMessage()

func (*SecretEntry) Reset added in v0.16.0

func (m *SecretEntry) Reset()

func (*SecretEntry) String added in v0.16.0

func (m *SecretEntry) String() string

type SecretServer added in v0.16.0

type SecretServer interface {
	SecretCreate(context.Context, *CreateRequest) (*CreateReply, error)
	SecretList(context.Context, *ListRequest) (*ListReply, error)
	SecretRemove(context.Context, *RemoveRequest) (*RemoveReply, error)
}

type Server

type Server struct {
	Docker *docker.Docker
}

Server server information

func (*Server) SecretCreate added in v0.17.0

func (s *Server) SecretCreate(ctx context.Context, in *CreateRequest) (*CreateReply, error)

func (*Server) SecretList added in v0.17.0

func (s *Server) SecretList(ctx context.Context, in *ListRequest) (*ListReply, error)

func (*Server) SecretRemove added in v0.17.0

func (s *Server) SecretRemove(ctx context.Context, in *RemoveRequest) (*RemoveReply, error)

Jump to

Keyboard shortcuts

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