Versions in this module Expand all Collapse all v0 v0.1.1 Oct 16, 2020 Changes in this version + const AccessTokenIssuerClient + const AccessTokenIssuerPortal + const AccessTokenIssuerSys + const ErrInvalidToken + const ErrParamsInvalid + type AccessTokenIssuer = pb.AccessTokenIssuer + type Client struct + func New(logger log.Logger, fns ...func(*Options)) *Client + func (c *Client) CreateBranch(ctx context.Context, branchName []byte) (*pb.BranchResponse, error) + func (c *Client) CreateEnv(ctx context.Context, branchId, envId, envName, envEncToken []byte) (*pb.EnvResponse, error) + func (c *Client) DeleteBranch(ctx context.Context, branchId []byte) error + func (c *Client) DeleteEnv(ctx context.Context, envId []byte) error + func (c *Client) EvictAccessToken(ctx context.Context, token string) error + func (c *Client) GenerateAccessToken(ctx context.Context, issuer AccessTokenIssuer, subject string) ([]byte, error) + func (c *Client) GetBranch(ctx context.Context, branchId string) (*pb.BranchResponse, error) + func (c *Client) GetBranchEncToken(ctx context.Context, branchId []byte) ([]byte, error) + func (c *Client) GetEnv(ctx context.Context, envId []byte) (*pb.EnvResponse, error) + func (c *Client) GetEnvEncToken(ctx context.Context, envId []byte) ([]byte, error) + func (c *Client) GetEnvsWithBranchId(ctx context.Context, branchId string) ([]*pb.EnvResponse, error) + func (c *Client) GetSource(ctx context.Context, fileKey []byte) (*pb.FileSource, error) + func (c *Client) GetVersion(ctx context.Context, envId, appVersion []byte) (*pb.VersionResponse, error) + func (c *Client) GetVersionList(ctx context.Context, envId []byte) ([]*pb.VersionResponse, error) + func (c *Client) ReleaseVersion(ctx context.Context, params *pb.VersionReleaseRequest) error + func (c *Client) UploadPkg(ctx context.Context, source multipart.File) (fileKey []byte, err error) + func (c *Client) VerifyAccessToken(ctx context.Context, token string) (subject []byte, err error) + func (c *Client) VersionStrictCompatQuery(ctx context.Context, envId, appVersion []byte) (*pb.VersionStrictCompatQueryResponse, error) + type Options struct + ServerAddr string