Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
Agent contains client communicating with NeoFS and logger.
func (*Agent) IssueSecret ¶
IssueSecret creates an auth token, puts it in the NeoFS network and writes to io.Writer a new secret access key.
func (*Agent) ObtainSecret ¶
ObtainSecret receives an existing secret access key from NeoFS and writes to io.Writer the secret access key.
type ContainerPolicies ¶ added in v0.17.0
ContainerPolicies contains mapping of aws LocationConstraint to neofs PlacementPolicy.
type IssueSecretOptions ¶
type IssueSecretOptions struct { ContainerID *cid.ID ContainerFriendlyName string NeoFSKey *keys.PrivateKey GatesPublicKeys []*keys.PublicKey EACLRules []byte ContextRules []byte SessionTkn bool Lifetime uint64 AwsCliCredentialsFile string ContainerPolicies ContainerPolicies }
IssueSecretOptions contains options for passing to Agent.IssueSecret method.
type ObtainSecretOptions ¶
type ObtainSecretOptions struct { SecretAddress string GatePrivateKey *keys.PrivateKey }
ObtainSecretOptions contains options for passing to Agent.ObtainSecret method.
Click to show internal directories.
Click to hide internal directories.