Class: Acmesmith::Storages::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/acmesmith/storages/base.rb

Direct Known Subclasses

Filesystem, S3

Defined Under Namespace

Classes: AlreadyExist, NotExist

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



7
8
# File 'lib/acmesmith/storages/base.rb', line 7

def initialize()
end

Instance Method Details

#get_account_keyAcmesmith::AccountKey

Returns:

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/acmesmith/storages/base.rb', line 11

def 
  raise NotImplementedError
end

#get_certificate(common_name, version: 'current') ⇒ Acmesmith::Certificate

Parameters:

  • common_name (String)
  • version (String, nil) (defaults to: 'current')

Returns:

Raises:

  • (NotImplementedError)


31
32
33
# File 'lib/acmesmith/storages/base.rb', line 31

def get_certificate(common_name, version: 'current')
  raise NotImplementedError
end

#get_current_certificate_version(common_name) ⇒ String

Returns current version.

Parameters:

  • common_name (String)

Returns:

  • (String)

    current version

Raises:

  • (NotImplementedError)


49
50
51
# File 'lib/acmesmith/storages/base.rb', line 49

def get_current_certificate_version(common_name)
  raise NotImplementedError
end

#list_certificate_versions(common_name) ⇒ String

Returns array of versions.

Parameters:

  • common_name (String)

Returns:

  • (String)

    array of versions

Raises:

  • (NotImplementedError)


43
44
45
# File 'lib/acmesmith/storages/base.rb', line 43

def list_certificate_versions(common_name)
  raise NotImplementedError
end

#list_certificatesString

Returns array of common_names.

Parameters:

  • common_name (String)

Returns:

  • (String)

    array of common_names

Raises:

  • (NotImplementedError)


37
38
39
# File 'lib/acmesmith/storages/base.rb', line 37

def list_certificates
  raise NotImplementedError
end

#put_account_key(key, passphrase = nil) ⇒ Object

Parameters:

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/acmesmith/storages/base.rb', line 17

def (key, passphrase = nil)
  raise NotImplementedError
end

#put_certificate(cert, passphrase = nil, update_current: true) ⇒ Object

Parameters:

  • cert (Acmesmith::Certificate)
  • passphrase (String, nil) (defaults to: nil)
  • update_current (true, false) (defaults to: true)

Raises:

  • (NotImplementedError)


24
25
26
# File 'lib/acmesmith/storages/base.rb', line 24

def put_certificate(cert, passphrase = nil, update_current: true)
  raise NotImplementedError
end