Class: Kuby::Docker::RemoteTags

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/kuby/docker/remote_tags.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(remote_client, metadata) ⇒ RemoteTags

Returns a new instance of RemoteTags.



21
22
23
24
# File 'lib/kuby/docker/remote_tags.rb', line 21

def initialize(remote_client, )
  @remote_client = remote_client
  @metadata = 
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



12
13
14
# File 'lib/kuby/docker/remote_tags.rb', line 12

def 
  @metadata
end

#remote_clientObject (readonly)

Returns the value of attribute remote_client.



9
10
11
# File 'lib/kuby/docker/remote_tags.rb', line 9

def remote_client
  @remote_client
end

Instance Method Details

#latest_tagsObject



32
33
34
35
# File 'lib/kuby/docker/remote_tags.rb', line 32

def latest_tags
  # not available for remote repos
  []
end

#tagsObject



27
28
29
# File 'lib/kuby/docker/remote_tags.rb', line 27

def tags
  remote_client.tags
end

#timestamp_tagsObject



38
39
40
# File 'lib/kuby/docker/remote_tags.rb', line 38

def timestamp_tags
  tags.map { |t| TimestampTag.try_parse(t) }.compact
end