 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func CheckFormat(c *container.Container) error
- func IsErrNotFound(err error) bool
- type RemovalWitness
- func (x RemovalWitness) ContainerID() *cid.ID
- func (x RemovalWitness) SessionToken() *session.Token
- func (x *RemovalWitness) SetContainerID(id *cid.ID)
- func (x *RemovalWitness) SetSessionToken(tok *session.Token)
- func (x *RemovalWitness) SetSignature(sig []byte)
- func (x RemovalWitness) Signature() []byte
 
- type Source
Constants ¶
This section is empty.
Variables ¶
var ErrEACLNotFound = errors.New("extended ACL table is not set for this container")
    ErrEACLNotFound is returned by eACL storage implementations when requested eACL table is not in storage.
Functions ¶
func CheckFormat ¶ added in v0.12.0
CheckFormat conducts an initial check of the v2 container data.
It is expected that if a container fails this test, it will not be inner-ring approved.
func IsErrNotFound ¶ added in v0.28.0
IsErrNotFound checks if error returned by Source.Get corresponds to missing container.
Types ¶
type RemovalWitness ¶ added in v0.21.0
type RemovalWitness struct {
	// contains filtered or unexported fields
}
    RemovalWitness groups the information required to prove and verify the removal of a container.
func (RemovalWitness) ContainerID ¶ added in v0.21.0
func (x RemovalWitness) ContainerID() *cid.ID
ContainerID returns identifier of the container to be removed.
func (RemovalWitness) SessionToken ¶ added in v0.21.0
func (x RemovalWitness) SessionToken() *session.Token
SessionToken returns token of the session within which container was removed.
func (*RemovalWitness) SetContainerID ¶ added in v0.21.0
func (x *RemovalWitness) SetContainerID(id *cid.ID)
SetContainerID sets identifier of the container to be removed.
func (*RemovalWitness) SetSessionToken ¶ added in v0.21.0
func (x *RemovalWitness) SetSessionToken(tok *session.Token)
SetSessionToken sets token of the session within which container was removed.
func (*RemovalWitness) SetSignature ¶ added in v0.21.0
func (x *RemovalWitness) SetSignature(sig []byte)
SetSignature sets signature of the container identifier.
func (RemovalWitness) Signature ¶ added in v0.21.0
func (x RemovalWitness) Signature() []byte
Signature returns signature of the container identifier.
type Source ¶ added in v0.12.0
type Source interface {
	// Get reads the container from the storage by identifier.
	// It returns the pointer to requested container and any error encountered.
	//
	// Get must return exactly one non-nil value.
	// Get must return an error of type apistatus.ContainerNotFound if the container is not in storage.
	//
	// Implementations must not retain the container pointer and modify
	// the container through it.
	Get(*cid.ID) (*container.Container, error)
}
    Source is an interface that wraps basic container receiving method.