Versions in this module Expand all Collapse all v1 v1.0.0 Jun 4, 2021 Changes in this version + var Executable = os.Executable() + var Pid = fmt.Sprintf("%v", os.Getpid()) + func AddNetrc(token string) (err error) + func Cname() string + func Commands(getContext func() context.Context, getClientConn func() *grpc.ClientConn) (commands []*cobra.Command) + func DisplayPkg(pkg *Pkg) + func EnvReserved(name string) bool + func Extract() (filenames []string, err error) + func GetLocalIp() (localIp string) + func LatestVersion(name string) (latest string) + func LoadEnvirons(target string) (environs map[string]string) + func NameVersion(pkg string) (name, version string) + func Names(ps []*Pkg) string + func NetrcEntries() (entries []string) + func OpenZipFile(src string) (r *bytes.Reader, fs int64, err error) + func ParseNetrcToken(token string) (github, login, pass string, err error) + func PkgSum(name, version, sha1sum string, deploy bool) string + func ReadDirNames(dirname string) (names []string) + func ReadFileNames(dirname string) (names []string) + func Register(s *grpc.Server) + func RegisterPkgAdminServer(s *grpc.Server, srv PkgAdminServer) + func ReleaseURL(name, version string) (url string) + func RemoveNetrc(github string) (err error) + func RunParts(part string, args ...string) (output string, err error) + func RunPartsDetach(part string, args ...string) (err error) + func SaveEnvirons(target string, environs map[string]string) (err error) + func Unzip(src string, dest string) ([]string, error) + func Versions(name string) (versions []string) + type BuildReply struct + Pkgs []*Pkg + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*BuildReply) Descriptor() ([]byte, []int) + func (*BuildReply) ProtoMessage() + func (m *BuildReply) GetPkgs() []*Pkg + func (m *BuildReply) Reset() + func (m *BuildReply) String() string + func (m *BuildReply) XXX_DiscardUnknown() + func (m *BuildReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *BuildReply) XXX_Merge(src proto.Message) + func (m *BuildReply) XXX_Size() int + func (m *BuildReply) XXX_Unmarshal(b []byte) error + type BuildRequest struct + Project *Project + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*BuildRequest) Descriptor() ([]byte, []int) + func (*BuildRequest) ProtoMessage() + func (m *BuildRequest) GetProject() *Project + func (m *BuildRequest) Reset() + func (m *BuildRequest) String() string + func (m *BuildRequest) XXX_DiscardUnknown() + func (m *BuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *BuildRequest) XXX_Merge(src proto.Message) + func (m *BuildRequest) XXX_Size() int + func (m *BuildRequest) XXX_Unmarshal(b []byte) error + type Chunk struct + Data []byte + Position int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Chunk) Descriptor() ([]byte, []int) + func (*Chunk) ProtoMessage() + func (m *Chunk) GetData() []byte + func (m *Chunk) GetPosition() int64 + func (m *Chunk) Reset() + func (m *Chunk) String() string + func (m *Chunk) XXX_DiscardUnknown() + func (m *Chunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Chunk) XXX_Merge(src proto.Message) + func (m *Chunk) XXX_Size() int + func (m *Chunk) XXX_Unmarshal(b []byte) error + type DownloadRequest struct + Pkg *Pkg + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*DownloadRequest) Descriptor() ([]byte, []int) + func (*DownloadRequest) ProtoMessage() + func (m *DownloadRequest) GetPkg() *Pkg + func (m *DownloadRequest) Reset() + func (m *DownloadRequest) String() string + func (m *DownloadRequest) XXX_DiscardUnknown() + func (m *DownloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *DownloadRequest) XXX_Merge(src proto.Message) + func (m *DownloadRequest) XXX_Size() int + func (m *DownloadRequest) XXX_Unmarshal(b []byte) error + type ListRequest struct + Name string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ListRequest) Descriptor() ([]byte, []int) + func (*ListRequest) ProtoMessage() + func (m *ListRequest) GetName() string + func (m *ListRequest) Reset() + func (m *ListRequest) String() string + func (m *ListRequest) XXX_DiscardUnknown() + func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ListRequest) XXX_Merge(src proto.Message) + func (m *ListRequest) XXX_Size() int + func (m *ListRequest) XXX_Unmarshal(b []byte) error + type Pkg struct + Deploy bool + Name string + Sha1Sum string + Version string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Pkg) Descriptor() ([]byte, []int) + func (*Pkg) ProtoMessage() + func (m *Pkg) GetDeploy() bool + func (m *Pkg) GetName() string + func (m *Pkg) GetSha1Sum() string + func (m *Pkg) GetVersion() string + func (m *Pkg) Reset() + func (m *Pkg) String() string + func (m *Pkg) XXX_DiscardUnknown() + func (m *Pkg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Pkg) XXX_Merge(src proto.Message) + func (m *Pkg) XXX_Size() int + func (m *Pkg) XXX_Unmarshal(b []byte) error + type PkgAdminClient interface + Build func(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (*BuildReply, error) + Download func(ctx context.Context, in *DownloadRequest, opts ...grpc.CallOption) (PkgAdmin_DownloadClient, error) + List func(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (PkgAdmin_ListClient, error) + Remove func(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveReply, error) + Upload func(ctx context.Context, opts ...grpc.CallOption) (PkgAdmin_UploadClient, error) + func NewPkgAdminClient(cc *grpc.ClientConn) PkgAdminClient + type PkgAdminServer interface + Build func(context.Context, *BuildRequest) (*BuildReply, error) + Download func(*DownloadRequest, PkgAdmin_DownloadServer) error + List func(*ListRequest, PkgAdmin_ListServer) error + Remove func(context.Context, *RemoveRequest) (*RemoveReply, error) + Upload func(PkgAdmin_UploadServer) error + type PkgAdmin_DownloadClient interface + Recv func() (*PkgChunk, error) + type PkgAdmin_DownloadServer interface + Send func(*PkgChunk) error + type PkgAdmin_ListClient interface + Recv func() (*Pkg, error) + type PkgAdmin_ListServer interface + Send func(*Pkg) error + type PkgAdmin_UploadClient interface + CloseAndRecv func() (*UploadReply, error) + Send func(*PkgChunk) error + type PkgAdmin_UploadServer interface + Recv func() (*PkgChunk, error) + SendAndClose func(*UploadReply) error + type PkgChunk struct + Chunk *Chunk + Pkg *Pkg + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*PkgChunk) Descriptor() ([]byte, []int) + func (*PkgChunk) ProtoMessage() + func (m *PkgChunk) GetChunk() *Chunk + func (m *PkgChunk) GetPkg() *Pkg + func (m *PkgChunk) Reset() + func (m *PkgChunk) String() string + func (m *PkgChunk) XXX_DiscardUnknown() + func (m *PkgChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PkgChunk) XXX_Merge(src proto.Message) + func (m *PkgChunk) XXX_Size() int + func (m *PkgChunk) XXX_Unmarshal(b []byte) error + type Project struct + Name string + Version string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Project) Descriptor() ([]byte, []int) + func (*Project) ProtoMessage() + func (m *Project) GetName() string + func (m *Project) GetVersion() string + func (m *Project) Reset() + func (m *Project) String() string + func (m *Project) XXX_DiscardUnknown() + func (m *Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Project) XXX_Merge(src proto.Message) + func (m *Project) XXX_Size() int + func (m *Project) XXX_Unmarshal(b []byte) error + func (p *Project) Build(url string) (pkgs []*Pkg, err error) + type RemoveReply struct + Pkg *Pkg + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RemoveReply) Descriptor() ([]byte, []int) + func (*RemoveReply) ProtoMessage() + func (m *RemoveReply) GetPkg() *Pkg + func (m *RemoveReply) Reset() + func (m *RemoveReply) String() string + func (m *RemoveReply) XXX_DiscardUnknown() + func (m *RemoveReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RemoveReply) XXX_Merge(src proto.Message) + func (m *RemoveReply) XXX_Size() int + func (m *RemoveReply) XXX_Unmarshal(b []byte) error + type RemoveRequest struct + Pkg *Pkg + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RemoveRequest) Descriptor() ([]byte, []int) + func (*RemoveRequest) ProtoMessage() + func (m *RemoveRequest) GetPkg() *Pkg + func (m *RemoveRequest) Reset() + func (m *RemoveRequest) String() string + func (m *RemoveRequest) XXX_DiscardUnknown() + func (m *RemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RemoveRequest) XXX_Merge(src proto.Message) + func (m *RemoveRequest) XXX_Size() int + func (m *RemoveRequest) XXX_Unmarshal(b []byte) error + type Setting struct + Github string + Login string + Token string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Setting) Descriptor() ([]byte, []int) + func (*Setting) ProtoMessage() + func (m *Setting) GetGithub() string + func (m *Setting) GetLogin() string + func (m *Setting) GetToken() string + func (m *Setting) Reset() + func (m *Setting) String() string + func (m *Setting) XXX_DiscardUnknown() + func (m *Setting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Setting) XXX_Merge(src proto.Message) + func (m *Setting) XXX_Size() int + func (m *Setting) XXX_Unmarshal(b []byte) error + type Strings []string + func (ss Strings) Append(strs ...string) Strings + func (ss Strings) Contains(want string) bool + func (ss Strings) Equal(wants Strings) bool + type TreeR struct + func LoadContentR(content string) (tr *TreeR) + func LoadFileR(p string) (tr *TreeR) + func LoadPkgSum(name, version string) (tr *TreeR) + func LoadRelease(name, version string) (tr *TreeR) + func LoadReleasePkg(name string, pkg string) (tr *TreeR) + func LoadTarget(target string) (tr *TreeR) + func (tr *TreeR) GetBool(name ...string) (value bool) + func (tr *TreeR) GetDeploy() (deploy bool) + func (tr *TreeR) GetInt(name ...string) (value int) + func (tr *TreeR) GetPkg(name string) (pkg *Pkg) + func (tr *TreeR) GetPkgs() (ps []*Pkg) + func (tr *TreeR) GetString(name ...string) (value string) + func (tr *TreeR) NotFound() bool + func (tr *TreeR) Remove() (err error) + type UnimplementedPkgAdminServer struct + func (*UnimplementedPkgAdminServer) Build(ctx context.Context, req *BuildRequest) (*BuildReply, error) + func (*UnimplementedPkgAdminServer) Download(req *DownloadRequest, srv PkgAdmin_DownloadServer) error + func (*UnimplementedPkgAdminServer) List(req *ListRequest, srv PkgAdmin_ListServer) error + func (*UnimplementedPkgAdminServer) Remove(ctx context.Context, req *RemoveRequest) (*RemoveReply, error) + func (*UnimplementedPkgAdminServer) Upload(srv PkgAdmin_UploadServer) error + type UploadReply struct + Pkg *Pkg + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*UploadReply) Descriptor() ([]byte, []int) + func (*UploadReply) ProtoMessage() + func (m *UploadReply) GetPkg() *Pkg + func (m *UploadReply) Reset() + func (m *UploadReply) String() string + func (m *UploadReply) XXX_DiscardUnknown() + func (m *UploadReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *UploadReply) XXX_Merge(src proto.Message) + func (m *UploadReply) XXX_Size() int + func (m *UploadReply) XXX_Unmarshal(b []byte) error