Documentation ¶
Overview ¶
Package proto_api is a generated protocol buffer package.
It is generated from these files:
server.proto
It has these top-level messages:
DeleteSessionsRequest GetLogsRequest FirewallRule LoginRequest AddSignatoriesRequest RemoveSignatoriesRequest AddVoteRequest ContractRequest GetCocoonRequest GetIdentityRequest GetReleaseRequest DeployRequest CreateIdentityRequest StopCocoonRequest Response
Index ¶
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type AddSignatoriesRequest
- type AddVoteRequest
- type ContractRequest
- func (*ContractRequest) Descriptor() ([]byte, []int)
- func (m *ContractRequest) GetACL() []byte
- func (m *ContractRequest) GetBuildParam() string
- func (m *ContractRequest) GetCPUShare() int32
- func (m *ContractRequest) GetCocoonID() string
- func (m *ContractRequest) GetEnableFirewall() bool
- func (m *ContractRequest) GetEnv() map[string]string
- func (m *ContractRequest) GetFirewall() []*FirewallRule
- func (m *ContractRequest) GetLanguage() string
- func (m *ContractRequest) GetLink() string
- func (m *ContractRequest) GetMemory() int32
- func (m *ContractRequest) GetNumSignatories() int32
- func (m *ContractRequest) GetSigThreshold() int32
- func (m *ContractRequest) GetURL() string
- func (m *ContractRequest) GetVersion() string
- func (*ContractRequest) ProtoMessage()
- func (m *ContractRequest) Reset()
- func (m *ContractRequest) String() string
- type CreateIdentityRequest
- type DeleteSessionsRequest
- type DeployRequest
- type FirewallRule
- type GetCocoonRequest
- type GetIdentityRequest
- type GetLogsRequest
- type GetReleaseRequest
- type LoginRequest
- type RemoveSignatoriesRequest
- func (*RemoveSignatoriesRequest) Descriptor() ([]byte, []int)
- func (m *RemoveSignatoriesRequest) GetCocoonID() string
- func (m *RemoveSignatoriesRequest) GetIDs() []string
- func (*RemoveSignatoriesRequest) ProtoMessage()
- func (m *RemoveSignatoriesRequest) Reset()
- func (m *RemoveSignatoriesRequest) String() string
- type Response
- type StopCocoonRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*Response, error) CreateCocoon(ctx context.Context, in *ContractRequest, opts ...grpc.CallOption) (*Response, error) UpdateCocoon(ctx context.Context, in *ContractRequest, opts ...grpc.CallOption) (*Response, error) GetRelease(ctx context.Context, in *GetReleaseRequest, opts ...grpc.CallOption) (*Response, error) CreateIdentity(ctx context.Context, in *CreateIdentityRequest, opts ...grpc.CallOption) (*Response, error) Deploy(ctx context.Context, in *DeployRequest, opts ...grpc.CallOption) (*Response, error) GetCocoon(ctx context.Context, in *GetCocoonRequest, opts ...grpc.CallOption) (*Response, error) GetIdentity(ctx context.Context, in *GetIdentityRequest, opts ...grpc.CallOption) (*Response, error) StopCocoon(ctx context.Context, in *StopCocoonRequest, opts ...grpc.CallOption) (*Response, error) AddSignatories(ctx context.Context, in *AddSignatoriesRequest, opts ...grpc.CallOption) (*Response, error) AddVote(ctx context.Context, in *AddVoteRequest, opts ...grpc.CallOption) (*Response, error) RemoveSignatories(ctx context.Context, in *RemoveSignatoriesRequest, opts ...grpc.CallOption) (*Response, error) GetLogs(ctx context.Context, in *GetLogsRequest, opts ...grpc.CallOption) (*Response, error) DeleteSessions(ctx context.Context, in *DeleteSessionsRequest, opts ...grpc.CallOption) (*Response, error) }
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { Login(context.Context, *LoginRequest) (*Response, error) CreateCocoon(context.Context, *ContractRequest) (*Response, error) UpdateCocoon(context.Context, *ContractRequest) (*Response, error) GetRelease(context.Context, *GetReleaseRequest) (*Response, error) CreateIdentity(context.Context, *CreateIdentityRequest) (*Response, error) Deploy(context.Context, *DeployRequest) (*Response, error) GetCocoon(context.Context, *GetCocoonRequest) (*Response, error) GetIdentity(context.Context, *GetIdentityRequest) (*Response, error) StopCocoon(context.Context, *StopCocoonRequest) (*Response, error) AddSignatories(context.Context, *AddSignatoriesRequest) (*Response, error) AddVote(context.Context, *AddVoteRequest) (*Response, error) RemoveSignatories(context.Context, *RemoveSignatoriesRequest) (*Response, error) GetLogs(context.Context, *GetLogsRequest) (*Response, error) DeleteSessions(context.Context, *DeleteSessionsRequest) (*Response, error) }
type AddSignatoriesRequest ¶
type AddSignatoriesRequest struct { CocoonID string `protobuf:"bytes,1,opt,name=cocoonID,proto3" json:"cocoonID,omitempty"` IDs []string `protobuf:"bytes,2,rep,name=IDs" json:"IDs,omitempty"` }
func (*AddSignatoriesRequest) Descriptor ¶
func (*AddSignatoriesRequest) Descriptor() ([]byte, []int)
func (*AddSignatoriesRequest) GetCocoonID ¶
func (m *AddSignatoriesRequest) GetCocoonID() string
func (*AddSignatoriesRequest) GetIDs ¶
func (m *AddSignatoriesRequest) GetIDs() []string
func (*AddSignatoriesRequest) ProtoMessage ¶
func (*AddSignatoriesRequest) ProtoMessage()
func (*AddSignatoriesRequest) Reset ¶
func (m *AddSignatoriesRequest) Reset()
func (*AddSignatoriesRequest) String ¶
func (m *AddSignatoriesRequest) String() string
type AddVoteRequest ¶
type AddVoteRequest struct { ReleaseID string `protobuf:"bytes,1,opt,name=releaseID,proto3" json:"releaseID,omitempty"` Vote int32 `protobuf:"varint,2,opt,name=vote,proto3" json:"vote,omitempty"` }
func (*AddVoteRequest) Descriptor ¶
func (*AddVoteRequest) Descriptor() ([]byte, []int)
func (*AddVoteRequest) GetReleaseID ¶
func (m *AddVoteRequest) GetReleaseID() string
func (*AddVoteRequest) GetVote ¶
func (m *AddVoteRequest) GetVote() int32
func (*AddVoteRequest) ProtoMessage ¶
func (*AddVoteRequest) ProtoMessage()
func (*AddVoteRequest) Reset ¶
func (m *AddVoteRequest) Reset()
func (*AddVoteRequest) String ¶
func (m *AddVoteRequest) String() string
type ContractRequest ¶
type ContractRequest struct { CocoonID string `` /* 132-byte string literal not displayed */ URL string `protobuf:"bytes,2,opt,name=URL,proto3" json:"url,omitempty" structs:"url,omitempty" mapstructure:"url,omitempty"` Language string `` /* 132-byte string literal not displayed */ Version string `` /* 128-byte string literal not displayed */ BuildParam string `` /* 140-byte string literal not displayed */ Firewall []*FirewallRule `protobuf:"bytes,6,rep,name=firewall" json:"firewall,omitempty" structs:"firewall,omitempty" mapstructure:"firewall,omitempty"` ACL []byte `protobuf:"bytes,7,opt,name=ACL,proto3" json:"acl,omitempty" structs:"acl,omitempty" mapstructure:"acl,omitempty"` Memory int32 `protobuf:"varint,8,opt,name=memory,proto3" json:"memory,omitempty" structs:"memory,omitempty" mapstructure:"memory,omitempty"` Link string `protobuf:"bytes,10,opt,name=link,proto3" json:"link,omitempty" structs:"link,omitempty" mapstructure:"link,omitempty"` NumSignatories int32 `` /* 158-byte string literal not displayed */ SigThreshold int32 `` /* 150-byte string literal not displayed */ Env map[string]string `` /* 194-byte string literal not displayed */ EnableFirewall bool `` /* 158-byte string literal not displayed */ }
func (*ContractRequest) Descriptor ¶
func (*ContractRequest) Descriptor() ([]byte, []int)
func (*ContractRequest) GetACL ¶
func (m *ContractRequest) GetACL() []byte
func (*ContractRequest) GetBuildParam ¶
func (m *ContractRequest) GetBuildParam() string
func (*ContractRequest) GetCPUShare ¶
func (m *ContractRequest) GetCPUShare() int32
func (*ContractRequest) GetCocoonID ¶
func (m *ContractRequest) GetCocoonID() string
func (*ContractRequest) GetEnableFirewall ¶
func (m *ContractRequest) GetEnableFirewall() bool
func (*ContractRequest) GetEnv ¶
func (m *ContractRequest) GetEnv() map[string]string
func (*ContractRequest) GetFirewall ¶
func (m *ContractRequest) GetFirewall() []*FirewallRule
func (*ContractRequest) GetLanguage ¶
func (m *ContractRequest) GetLanguage() string
func (*ContractRequest) GetLink ¶
func (m *ContractRequest) GetLink() string
func (*ContractRequest) GetMemory ¶
func (m *ContractRequest) GetMemory() int32
func (*ContractRequest) GetNumSignatories ¶
func (m *ContractRequest) GetNumSignatories() int32
func (*ContractRequest) GetSigThreshold ¶
func (m *ContractRequest) GetSigThreshold() int32
func (*ContractRequest) GetURL ¶
func (m *ContractRequest) GetURL() string
func (*ContractRequest) GetVersion ¶
func (m *ContractRequest) GetVersion() string
func (*ContractRequest) ProtoMessage ¶
func (*ContractRequest) ProtoMessage()
func (*ContractRequest) Reset ¶
func (m *ContractRequest) Reset()
func (*ContractRequest) String ¶
func (m *ContractRequest) String() string
type CreateIdentityRequest ¶
type CreateIdentityRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` }
func (*CreateIdentityRequest) Descriptor ¶
func (*CreateIdentityRequest) Descriptor() ([]byte, []int)
func (*CreateIdentityRequest) GetEmail ¶
func (m *CreateIdentityRequest) GetEmail() string
func (*CreateIdentityRequest) GetPassword ¶
func (m *CreateIdentityRequest) GetPassword() string
func (*CreateIdentityRequest) ProtoMessage ¶
func (*CreateIdentityRequest) ProtoMessage()
func (*CreateIdentityRequest) Reset ¶
func (m *CreateIdentityRequest) Reset()
func (*CreateIdentityRequest) String ¶
func (m *CreateIdentityRequest) String() string
type DeleteSessionsRequest ¶
type DeleteSessionsRequest struct {
All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"`
}
func (*DeleteSessionsRequest) Descriptor ¶
func (*DeleteSessionsRequest) Descriptor() ([]byte, []int)
func (*DeleteSessionsRequest) GetAll ¶
func (m *DeleteSessionsRequest) GetAll() bool
func (*DeleteSessionsRequest) ProtoMessage ¶
func (*DeleteSessionsRequest) ProtoMessage()
func (*DeleteSessionsRequest) Reset ¶
func (m *DeleteSessionsRequest) Reset()
func (*DeleteSessionsRequest) String ¶
func (m *DeleteSessionsRequest) String() string
type DeployRequest ¶
type DeployRequest struct { CocoonID string `protobuf:"bytes,1,opt,name=cocoonID,proto3" json:"cocoonID,omitempty"` ReleaseID string `protobuf:"bytes,2,opt,name=releaseID,proto3" json:"releaseID,omitempty"` }
func (*DeployRequest) Descriptor ¶
func (*DeployRequest) Descriptor() ([]byte, []int)
func (*DeployRequest) GetCocoonID ¶
func (m *DeployRequest) GetCocoonID() string
func (*DeployRequest) GetReleaseID ¶
func (m *DeployRequest) GetReleaseID() string
func (*DeployRequest) ProtoMessage ¶
func (*DeployRequest) ProtoMessage()
func (*DeployRequest) Reset ¶
func (m *DeployRequest) Reset()
func (*DeployRequest) String ¶
func (m *DeployRequest) String() string
type FirewallRule ¶
type FirewallRule struct { Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` DestinationPort string `protobuf:"bytes,2,opt,name=destinationPort,proto3" json:"destinationPort,omitempty"` Protocol string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"` }
func (*FirewallRule) Descriptor ¶
func (*FirewallRule) Descriptor() ([]byte, []int)
func (*FirewallRule) GetDestination ¶
func (m *FirewallRule) GetDestination() string
func (*FirewallRule) GetDestinationPort ¶
func (m *FirewallRule) GetDestinationPort() string
func (*FirewallRule) GetProtocol ¶
func (m *FirewallRule) GetProtocol() string
func (*FirewallRule) ProtoMessage ¶
func (*FirewallRule) ProtoMessage()
func (*FirewallRule) Reset ¶
func (m *FirewallRule) Reset()
func (*FirewallRule) String ¶
func (m *FirewallRule) String() string
type GetCocoonRequest ¶
type GetCocoonRequest struct {
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"id" structs:"id,omitempty" mapstructure:"id,omitempty"`
}
func (*GetCocoonRequest) Descriptor ¶
func (*GetCocoonRequest) Descriptor() ([]byte, []int)
func (*GetCocoonRequest) GetID ¶
func (m *GetCocoonRequest) GetID() string
func (*GetCocoonRequest) ProtoMessage ¶
func (*GetCocoonRequest) ProtoMessage()
func (*GetCocoonRequest) Reset ¶
func (m *GetCocoonRequest) Reset()
func (*GetCocoonRequest) String ¶
func (m *GetCocoonRequest) String() string
type GetIdentityRequest ¶
type GetIdentityRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` ID string `protobuf:"bytes,2,opt,name=ID,proto3" json:"id" structs:"id,omitempty" mapstructure:"id,omitempty"` }
func (*GetIdentityRequest) Descriptor ¶
func (*GetIdentityRequest) Descriptor() ([]byte, []int)
func (*GetIdentityRequest) GetEmail ¶
func (m *GetIdentityRequest) GetEmail() string
func (*GetIdentityRequest) GetID ¶
func (m *GetIdentityRequest) GetID() string
func (*GetIdentityRequest) ProtoMessage ¶
func (*GetIdentityRequest) ProtoMessage()
func (*GetIdentityRequest) Reset ¶
func (m *GetIdentityRequest) Reset()
func (*GetIdentityRequest) String ¶
func (m *GetIdentityRequest) String() string
type GetLogsRequest ¶
type GetLogsRequest struct { CocoonID string `protobuf:"bytes,1,opt,name=cocoonID,proto3" json:"cocoonID,omitempty"` NumLines int32 `protobuf:"varint,2,opt,name=numLines,proto3" json:"numLines,omitempty"` Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"` }
func (*GetLogsRequest) Descriptor ¶
func (*GetLogsRequest) Descriptor() ([]byte, []int)
func (*GetLogsRequest) GetCocoonID ¶
func (m *GetLogsRequest) GetCocoonID() string
func (*GetLogsRequest) GetNumLines ¶
func (m *GetLogsRequest) GetNumLines() int32
func (*GetLogsRequest) GetSource ¶
func (m *GetLogsRequest) GetSource() string
func (*GetLogsRequest) ProtoMessage ¶
func (*GetLogsRequest) ProtoMessage()
func (*GetLogsRequest) Reset ¶
func (m *GetLogsRequest) Reset()
func (*GetLogsRequest) String ¶
func (m *GetLogsRequest) String() string
type GetReleaseRequest ¶
type GetReleaseRequest struct {
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
}
func (*GetReleaseRequest) Descriptor ¶
func (*GetReleaseRequest) Descriptor() ([]byte, []int)
func (*GetReleaseRequest) GetID ¶
func (m *GetReleaseRequest) GetID() string
func (*GetReleaseRequest) ProtoMessage ¶
func (*GetReleaseRequest) ProtoMessage()
func (*GetReleaseRequest) Reset ¶
func (m *GetReleaseRequest) Reset()
func (*GetReleaseRequest) String ¶
func (m *GetReleaseRequest) String() string
type LoginRequest ¶
type LoginRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` }
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) GetEmail ¶
func (m *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (m *LoginRequest) GetPassword() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
type RemoveSignatoriesRequest ¶
type RemoveSignatoriesRequest struct { CocoonID string `protobuf:"bytes,1,opt,name=cocoonID,proto3" json:"cocoonID,omitempty"` IDs []string `protobuf:"bytes,2,rep,name=IDs" json:"IDs,omitempty"` }
func (*RemoveSignatoriesRequest) Descriptor ¶
func (*RemoveSignatoriesRequest) Descriptor() ([]byte, []int)
func (*RemoveSignatoriesRequest) GetCocoonID ¶
func (m *RemoveSignatoriesRequest) GetCocoonID() string
func (*RemoveSignatoriesRequest) GetIDs ¶
func (m *RemoveSignatoriesRequest) GetIDs() []string
func (*RemoveSignatoriesRequest) ProtoMessage ¶
func (*RemoveSignatoriesRequest) ProtoMessage()
func (*RemoveSignatoriesRequest) Reset ¶
func (m *RemoveSignatoriesRequest) Reset()
func (*RemoveSignatoriesRequest) String ¶
func (m *RemoveSignatoriesRequest) String() string
type Response ¶
type Response struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` }
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type StopCocoonRequest ¶
type StopCocoonRequest struct {
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"id" structs:"id,omitempty" mapstructure:"id,omitempty"`
}
func (*StopCocoonRequest) Descriptor ¶
func (*StopCocoonRequest) Descriptor() ([]byte, []int)
func (*StopCocoonRequest) GetID ¶
func (m *StopCocoonRequest) GetID() string
func (*StopCocoonRequest) ProtoMessage ¶
func (*StopCocoonRequest) ProtoMessage()
func (*StopCocoonRequest) Reset ¶
func (m *StopCocoonRequest) Reset()
func (*StopCocoonRequest) String ¶
func (m *StopCocoonRequest) String() string
Click to show internal directories.
Click to hide internal directories.