github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/protocol/keybase1/gpg_common.go (about)

     1  // Auto-generated to Go types and interfaces using avdl-compiler v1.4.10 (https://github.com/keybase/node-avdl-compiler)
     2  //   Input file: avdl/keybase1/gpg_common.avdl
     3  
     4  package keybase1
     5  
     6  import (
     7  	"github.com/keybase/go-framed-msgpack-rpc/rpc"
     8  )
     9  
    10  type GPGKey struct {
    11  	Algorithm  string        `codec:"algorithm" json:"algorithm"`
    12  	KeyID      string        `codec:"keyID" json:"keyID"`
    13  	Creation   string        `codec:"creation" json:"creation"`
    14  	Expiration string        `codec:"expiration" json:"expiration"`
    15  	Identities []PGPIdentity `codec:"identities" json:"identities"`
    16  }
    17  
    18  func (o GPGKey) DeepCopy() GPGKey {
    19  	return GPGKey{
    20  		Algorithm:  o.Algorithm,
    21  		KeyID:      o.KeyID,
    22  		Creation:   o.Creation,
    23  		Expiration: o.Expiration,
    24  		Identities: (func(x []PGPIdentity) []PGPIdentity {
    25  			if x == nil {
    26  				return nil
    27  			}
    28  			ret := make([]PGPIdentity, len(x))
    29  			for i, v := range x {
    30  				vCopy := v.DeepCopy()
    31  				ret[i] = vCopy
    32  			}
    33  			return ret
    34  		})(o.Identities),
    35  	}
    36  }
    37  
    38  type GpgCommonInterface interface {
    39  }
    40  
    41  func GpgCommonProtocol(i GpgCommonInterface) rpc.Protocol {
    42  	return rpc.Protocol{
    43  		Name:    "keybase.1.gpgCommon",
    44  		Methods: map[string]rpc.ServeHandlerDescription{},
    45  	}
    46  }
    47  
    48  type GpgCommonClient struct {
    49  	Cli rpc.GenericClient
    50  }