github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/ext/dsort/ct/fqn.go (about)

     1  // Package ct provides additional dsort-specific content types
     2  /*
     3   * Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
     4   */
     5  package ct
     6  
     7  import (
     8  	"github.com/NVIDIA/aistore/fs"
     9  )
    10  
    11  // for common content types, see fs/content.go
    12  
    13  const (
    14  	DsortFileType     = "ds"
    15  	DsortWorkfileType = "dw"
    16  
    17  	WorkfileRecvShard   = "recv-shard"
    18  	WorkfileCreateShard = "create-shard"
    19  )
    20  
    21  // interface guard
    22  var _ fs.ContentResolver = (*DsortFile)(nil)
    23  
    24  type DsortFile struct{}
    25  
    26  func (*DsortFile) PermToEvict() bool                  { return false }
    27  func (*DsortFile) PermToMove() bool                   { return false }
    28  func (*DsortFile) PermToProcess() bool                { return false }
    29  func (*DsortFile) GenUniqueFQN(base, _ string) string { return base }
    30  
    31  func (*DsortFile) ParseUniqueFQN(base string) (orig string, old, ok bool) {
    32  	return base, false, true
    33  }