aspe-client-go

command module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 1 Imported by: 0

README

aspeClientGo

Ariadne Signature Profile Client written in go.

This is Ariadne Signature Profile Client by go which implements Ariadne Signature Profile v0

!!!This client is not stabilize now !!!

Usage

Build

go build

Config
.aspe-client-go.yaml
---
name: "Your name"
Claims:["claim1", "claim2"]
description: "Your description"
color: "Your color" #like #FFF000
avatar_url: "Your avatar url"
email: "Your email"
secret_key: "Your secret key" #like -----BEGIN PRIVATE KEY-----\nxxxx\n-----END PRIVATE KEY-----,only support EdDSA and ES256
server: "Your aspe server Domain" #like test.com
Run

./aspeClientGo [command] [flags] [options]

Options
-S, --send bool   send to server(default false)
Command
Create

./aspeClientGo create [flags] [options]

flags

name,description,claims,color,and avatar_url,email,secret_key,server default from config file

if no secret_key given(falgs and config),will generate a new one and print it in shell

!!!MUST store it carefully

-n, --name string     name of the signature profile
-c, --claims strings[]   claims of the signature profile
-d, --description string   description of the signature profile
-C, --color string    color of the signature profile
-a, --avatar_url string   avatar url of the signature profile
-e, --email string    email of the signature profile
-s, --secret_key string   secret key of the signature profile
--server string   aspe server domain
--config string   config file (default is .aspe-client-go.yaml)
-h, --help            help for create
Update

./aspeClientGo update [flags] [options]

flags
……#just like create
Delete
```./aspeClientGo delete [flags]  [options]```
flags
    ......#just like create,but only need secret_key,server(if send)

Documentation

Overview

Copyright © 2023 wind_mask <wind_mask_proton@proton.me>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
internal
asp
cmd
key

Jump to

Keyboard shortcuts

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