2024-04-24 13:00:37 +00:00
|
|
|
package apemanager
|
|
|
|
|
|
|
|
import (
|
2024-05-28 08:04:07 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/ape"
|
2024-04-24 13:00:37 +00:00
|
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/session"
|
|
|
|
)
|
|
|
|
|
|
|
|
type AddChainRequest struct {
|
|
|
|
body *AddChainRequestBody
|
|
|
|
|
|
|
|
session.RequestHeaders
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AddChainRequest) SetBody(body *AddChainRequestBody) {
|
|
|
|
r.body = body
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AddChainRequest) GetBody() *AddChainRequestBody {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddChainRequestBody struct {
|
2024-05-28 08:04:07 +00:00
|
|
|
target *ape.ChainTarget
|
2024-04-24 13:00:37 +00:00
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
chain *ape.Chain
|
2024-04-24 13:00:37 +00:00
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (rb *AddChainRequestBody) SetTarget(target *ape.ChainTarget) {
|
2024-04-24 13:00:37 +00:00
|
|
|
rb.target = target
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (rb *AddChainRequestBody) GetTarget() *ape.ChainTarget {
|
2024-04-24 13:00:37 +00:00
|
|
|
return rb.target
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (rb *AddChainRequestBody) SetChain(chain *ape.Chain) {
|
2024-04-24 13:00:37 +00:00
|
|
|
rb.chain = chain
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (rb *AddChainRequestBody) GetChain() *ape.Chain {
|
2024-04-24 13:00:37 +00:00
|
|
|
return rb.chain
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddChainResponse struct {
|
|
|
|
body *AddChainResponseBody
|
|
|
|
|
|
|
|
session.ResponseHeaders
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AddChainResponse) SetBody(body *AddChainResponseBody) {
|
|
|
|
r.body = body
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *AddChainResponse) GetBody() *AddChainResponseBody {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
type AddChainResponseBody struct {
|
|
|
|
chainID []byte
|
|
|
|
}
|
|
|
|
|
|
|
|
func (rb *AddChainResponseBody) SetChainID(chainID []byte) {
|
|
|
|
rb.chainID = chainID
|
|
|
|
}
|
|
|
|
|
|
|
|
func (rb *AddChainResponseBody) GetChainID() []byte {
|
|
|
|
return rb.chainID
|
|
|
|
}
|
|
|
|
|
|
|
|
type RemoveChainRequest struct {
|
|
|
|
body *RemoveChainRequestBody
|
|
|
|
|
|
|
|
session.RequestHeaders
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *RemoveChainRequest) SetBody(body *RemoveChainRequestBody) {
|
|
|
|
r.body = body
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *RemoveChainRequest) GetBody() *RemoveChainRequestBody {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
type RemoveChainRequestBody struct {
|
2024-05-28 08:04:07 +00:00
|
|
|
target *ape.ChainTarget
|
2024-04-24 13:00:37 +00:00
|
|
|
|
|
|
|
chainID []byte
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (rb *RemoveChainRequestBody) SetTarget(target *ape.ChainTarget) {
|
2024-04-24 13:00:37 +00:00
|
|
|
rb.target = target
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (rb *RemoveChainRequestBody) GetTarget() *ape.ChainTarget {
|
2024-04-24 13:00:37 +00:00
|
|
|
return rb.target
|
|
|
|
}
|
|
|
|
|
|
|
|
func (rb *RemoveChainRequestBody) SetChainID(chainID []byte) {
|
|
|
|
rb.chainID = chainID
|
|
|
|
}
|
|
|
|
|
|
|
|
func (rb *RemoveChainRequestBody) GetChainID() []byte {
|
|
|
|
return rb.chainID
|
|
|
|
}
|
|
|
|
|
|
|
|
type RemoveChainResponse struct {
|
|
|
|
body *RemoveChainResponseBody
|
|
|
|
|
|
|
|
session.ResponseHeaders
|
|
|
|
}
|
|
|
|
|
|
|
|
type RemoveChainResponseBody struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *RemoveChainResponse) SetBody(body *RemoveChainResponseBody) {
|
|
|
|
r.body = body
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *RemoveChainResponse) GetBody() *RemoveChainResponseBody {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListChainsRequest struct {
|
|
|
|
body *ListChainsRequestBody
|
|
|
|
|
|
|
|
session.RequestHeaders
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListChainsRequest) SetBody(body *ListChainsRequestBody) {
|
|
|
|
r.body = body
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListChainsRequest) GetBody() *ListChainsRequestBody {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListChainsRequestBody struct {
|
2024-05-28 08:04:07 +00:00
|
|
|
target *ape.ChainTarget
|
2024-04-24 13:00:37 +00:00
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (rb *ListChainsRequestBody) SetTarget(target *ape.ChainTarget) {
|
2024-04-24 13:00:37 +00:00
|
|
|
rb.target = target
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (rb *ListChainsRequestBody) GetTarget() *ape.ChainTarget {
|
2024-04-24 13:00:37 +00:00
|
|
|
return rb.target
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListChainsResponse struct {
|
|
|
|
body *ListChainsResponseBody
|
|
|
|
|
|
|
|
session.ResponseHeaders
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListChainsResponse) SetBody(body *ListChainsResponseBody) {
|
|
|
|
r.body = body
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *ListChainsResponse) GetBody() *ListChainsResponseBody {
|
|
|
|
return r.body
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListChainsResponseBody struct {
|
2024-05-28 08:04:07 +00:00
|
|
|
chains []*ape.Chain
|
2024-04-24 13:00:37 +00:00
|
|
|
|
|
|
|
session.RequestHeaders
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *ListChainsResponseBody) SetChains(chains []*ape.Chain) {
|
2024-04-24 13:00:37 +00:00
|
|
|
r.chains = chains
|
|
|
|
}
|
|
|
|
|
2024-05-28 08:04:07 +00:00
|
|
|
func (r *ListChainsResponseBody) GetChains() []*ape.Chain {
|
2024-04-24 13:00:37 +00:00
|
|
|
return r.chains
|
|
|
|
}
|