struct Service::CreateShard

Defined in:

service/create_shard.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(db : ShardsDB, repo : Repo, name : String, entry : Catalog::Entry | Nil = nil) #

[View source]

Instance Method Detail

def find_qualifier : Tuple(String, Int64 | Nil) #

Try to find a suitable shard name + qualifier. If there is already a shard by that name, the repo could reasonable be a mirror, a fork or simply a homonymous shard. This is impossible to reliably detect automatically. In essence, both forks and distinct shards need a separate shard instance. Mirrors should point to the same shard, but such a unification needs to be manually reviewed.


[View source]
def perform #

[View source]